I have some XML that I am de-serializing and all works fine apart from one of my properties in the serialized class is also a class for example; Person.Address.Postcode.
Address is a property in Person class but Address is a class with properties such as Postcode.
If the incoming XML does not contain Address information and deserialization takes place when I look at Person.Address this is null.
What I would like to happen is for Person.Address not to be null and have things like Postcode not null but empty strings.
I have tried the IsNullable=false attribute on the Address property but that does not work.
How is this possible?