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.
Watertown, Massachusetts. The Town of Watertown is a city in Middlesex County, Massachusetts, United States. It is part of the Greater Boston area. The population was 31,915 at the 2010 census. Watertown is one of fourteen Massachusetts municipalities that have applied for, and been granted, city forms of government but wish to retain The town ofâ in their official names.