2 using System.Runtime.Serialization;
4 namespace VersionTolerantSerializationTestLib
9 private string Street = "v6-Street";
10 private string City = "v6-City";
11 private string CountryCode = "v6-CountryCode";
13 [OptionalField (VersionAdded = 4)]
14 private string PostCode;
16 [OptionalField (VersionAdded = 5)]
17 private string AreaCode = "6";
19 [OptionalField (VersionAdded = 6)]
22 public override string ToString () {
23 return String.Format ("v6 obj {0} {1} {2}", Street, City, CountryCode);