LINQ: serialize C# classes

Logo devnterface d88f51727b3053dd3115e1ef9c566ad79b4c2edb3cd208c06345fc37058bebd9

The version 3.5 of Microsoft’s .NET Framework introudced the LINQ (Language Integrated Query).component.LINQ is a SQL-like language that allows to query different source of data, as objects, xml files and databases.What i’ll show today is how to generate an xml rappresentation of a C# class instance..Suppose to have a C# class Book so defined.123456public class Book { public String title { get; set; } public String author { get; set; } ...

Read more