
Untitled
By: a guest on
Apr 17th, 2012 | syntax:
None | size: 0.55 KB | hits: 8 | expires: Never
Does XPathDocument use the memory stream it is constructed with after construction?
// Take the xml message and turn it into an object
var bytes = Encoding.ASCII.GetBytes(message);
var memoryStream = new MemoryStream(bytes);
XPathDocument xPathDocument = new XPathDocument(memoryStream);
// Take the xml message and turn it into an object
var bytes = Encoding.ASCII.GetBytes(message);
var memoryStream = new MemoryStream(bytes);
XPathDocument xPathDocument = null;
using(memoryStream)
{
XPathDocument xPathDocument = new XPathDocument(memoryStream);
}