LINQ: from xml to C# classes

I continue my post on LINQ and C# programming talking about the conversion from XML file to C# classes. Previously I’ve show how to serilize a C# class into XML file. Let me show you an example. Suppose we have an XML file that contains the list of Italian municipalities with their area code. We now want to load this file into a list of C# objects more convenient to use within our application. Define the file Municipalities.xml as follow: 123456789101112131415161718192021222324<municipaliti...

Read more