From: shapper on
Hello,

I am loading a few XDocuments to read, write, etc.

After using the XDocument can't I dispose it? I think I should or not?
I was looking for it and XDocument does not have a Dispose method.

Thanks,
Miguel
From: Arne Vajhøj on
On 14-03-2010 20:12, shapper wrote:
> I am loading a few XDocuments to read, write, etc.
>
> After using the XDocument can't I dispose it? I think I should or not?
> I was looking for it and XDocument does not have a Dispose method.

There are no need for it.

XDocument only contains some data structures in managed memory.

And that can be GC'ed - so no need for any Close/Dispose call.

Arne