public SampleDataClass1(string name, SampleDataStruct1 dataStruct) { this.name = name; this.dataStruct = dataStruct; }
protected SampleDataClass1(SerializationInfo information, StreamingContext context) { this.name = (string)information.GetValue("name", typeof(string)); this.dataStruct = (SampleDataStruct1)information.GetValue("dataStruct", typeof(SampleDataStruct1)); }
public SampleDataClass1() { this.name = string.Empty; this.dataStruct = new SampleDataStruct1(); }