add a comment |. up vote 3 down vote. If you serialize an instance of the main class, the serializer will serialize an instance of the nested class if and only if the object graph contains one. In this respect, nested classes are exactly the same as all other classes.Basically you have to create properties for the nested class in the main one.he reason you are getting an empty XML file is that your SampleClass has no properties to serialize. In the constructor you are creating a Person and Address which are thrown away as soon as the method exists as you are not using them for anything. Change your code as follows and you should have more success.
In 2007, archaeologists confirmed what local historians and others could not: the existence of a Continental Army burial ground where at least 300 soldiers lie forgotten in unmarked graves upon land once known as the Fishkill Supply Depot.
Schaghticoke is a town in Rensselaer County, New York, USA. The population was 7,456 at the 2000 census. The Schaghticoke is a native tribe original to the area. The town is on the northern border of the county, north of Troy. The town contains a village, also called Schaghticoke, and part of the village of Valley Falls. The first permanent settlement began around 1668. The town, one of the original county towns, was formed in 1788 from a previously established district (1772 in Albany County).