I understand what the using clause does, but should it be used with unnamed parameters?
For example; should:
var navigator = new XPathDocument(new StringReader(request)).CreateNavigator();
be:
using (StringReader sr = new StringReader(request))
{
var navigator = new XPathDocument(sr).CreateNavigator();
...
}
Best way to know how it works : test!
In my opinion, you should always use the second method.