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.
Ulster is the closest Catskills County to New York City, with a straight shot up the Thruway. The southern end of Ulster County is considered part of the mid-Hudson region, with the Shawangunk Mountains near New Paltz offering dramatic vistas and world class rock climbing.