public Class2(SerializationInfo info, StreamingContext context) { TextData = info.GetString("TextData"); DateTimeData = info.GetDateTime("DateTimeData"); Class1 = (Class1)info.GetValue("Class1", typeof(Class1)); Class3 = (Class3)info.GetValue("Class3", typeof(Class3)); }
public Class2(string textData, DateTime dateTimeData, Class1 class1, Class3 class3) { TextData = textData; DateTimeData = dateTimeData; Class1 = class1; Class3 = class3; }
public Class1(string textData, DateTime dateTimeData, double doubleData, Class2 class2, Class3 class3) { TextData = textData; DateTimeData = dateTimeData; DoubleData = doubleData; Class2 = class2; Class3 = class3; }
protected bool Equals(Class3 other) { return(TextData == other.TextData && DateTimeData.Equals(other.DateTimeData) && Equals(Class2, other.Class2) && Equals(Class1, other.Class1)); }