Path of karpach96 :
We are extensively using Xsd2Code to generate report classes. Some of those reports are relatively big (>50Mb). LoadFromFile method of generated classes used to give us a lot of System.OutOfMemoryException. We looked at generated files and found that there is unnecessary usage of StreamReader with pure evil ReadToEnd. System.OutOfMemoryException went away after we removed StreamReader. Attached patch removes StreamReader from LoadFromFile method.
↧