M
Mark Rae
Hi,
Can someone settle an argument, please...
Since the XmlDocument class has neither a .Close() method nor does it
implement IDisposable, is there any point in even setting it to null...?
E.g.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("<filespec>");
// retrieve an XmlNode object and change its InnerText property
xmlDoc.Save("<filespec>");
At this point, would the line below be of any benefit...?
xmlDoc = null;
Any assistance gratefully received.
Mark
Can someone settle an argument, please...
Since the XmlDocument class has neither a .Close() method nor does it
implement IDisposable, is there any point in even setting it to null...?
E.g.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("<filespec>");
// retrieve an XmlNode object and change its InnerText property
xmlDoc.Save("<filespec>");
At this point, would the line below be of any benefit...?
xmlDoc = null;
Any assistance gratefully received.
Mark