XDocument + IEnumerable is causing out of memory exception in System.Xml.Linq.dll
- by Manatherin
Basically I have a program which, when it starts loads a list of files (as FileInfo) and for each file in the list it loads a XML document (as XDocument).
The program then reads data out of it into a container class (storing as IEnumerables), at which point the XDocument goes out of scope.
The program then exports the data from the container…