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.
The village of Oriskany Falls, which was formerly named Cassety Hollow in 1794 by the colonel Cassety, is located in a steep, narrow valley defined by three hills. The village developed in the valley and on the adjoining hillsides near the site of the waterfalls of the Oriskany Creek; hence the name Oriskany Falls. The swift running water over the falls was the source of power in those early days.