Quantcast
Channel: xsd2Code community edition .net class generator from XSD schema
Viewing all articles
Browse latest Browse all 543

Created Issue: Enhancement on LoadFromFile method [15444]

$
0
0
The code, while correct, for this method could be more efficient. The syntax below will do exactly the same work:

public static [object] LoadFromFile(string fileName)
{
using (System.IO.FileStream file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read))
using (System.IO.StreamReader sr = new System.IO.StreamReader(file))
return Deserialize(sr.ReadToEnd());
}

Viewing all articles
Browse latest Browse all 543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>