public XmlSerializerSamples01_Data() { StringProperty1 = string.Empty; StringProperty2 = string.Empty; ObjectProperty = new XmlSerializerSamples01_Data2(); ListProperty = new List <XmlSerializerSamples01_Data2>(); EnumProperty = XmlSerializerSamples01_Enum.Element1; }
public XmlSerializerSamples01_Data() { StringProperty1 = string.Empty; StringProperty2 = string.Empty; ObjectProperty = new XmlSerializerSamples01_Data2(); ListProperty = new List<XmlSerializerSamples01_Data2>(); EnumProperty = XmlSerializerSamples01_Enum.Element1; }
public void Initialize() { StringProperty1 = "Property1"; StringProperty2 = "Property2"; ObjectProperty = new XmlSerializerSamples01_Data2 { IntValue = 100, DateTimeValue = DateTime.Now }; ListProperty = new List <XmlSerializerSamples01_Data2> { new XmlSerializerSamples01_Data2 { IntValue = 200, DateTimeValue = DateTime.Now }, new XmlSerializerSamples01_Data2 { IntValue = 300, DateTimeValue = DateTime.Now } }; //DictionaryProperty = new Dictionary<int, XmlSerializerSamples01_Data2> //{ // { // 1, // new XmlSerializerSamples01_Data2 // { // IntValue = 400, // DateTimeValue = DateTime.MinValue // } // }, // { // 2, // new XmlSerializerSamples01_Data2 // { // IntValue = 500, // DateTimeValue = DateTime.MaxValue // } // } //}; EnumProperty = XmlSerializerSamples01_Enum.Element3; }
public void Initialize() { StringProperty1 = "Property1"; StringProperty2 = "Property2"; ObjectProperty = new XmlSerializerSamples01_Data2 { IntValue = 100, DateTimeValue = DateTime.Now }; ListProperty = new List<XmlSerializerSamples01_Data2> { new XmlSerializerSamples01_Data2 { IntValue = 200, DateTimeValue = DateTime.Now }, new XmlSerializerSamples01_Data2 { IntValue = 300, DateTimeValue = DateTime.Now } }; //DictionaryProperty = new Dictionary<int, XmlSerializerSamples01_Data2> //{ // { // 1, // new XmlSerializerSamples01_Data2 // { // IntValue = 400, // DateTimeValue = DateTime.MinValue // } // }, // { // 2, // new XmlSerializerSamples01_Data2 // { // IntValue = 500, // DateTimeValue = DateTime.MaxValue // } // } //}; EnumProperty = XmlSerializerSamples01_Enum.Element3; }