I can't find any info about whether or not I should dispose/close this object after using it... Here is the msdn link: http://msdn.microsoft.com/en-us/library/bb343181.aspx
No, you don't - it doesn't even implement IDisposable
. The XDocument
and XElement
classes use XmlReader
under the covers and handle the disposing of the underlying reader for you.
Easiest way to find out is to look if it implements IDisposable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With