Beispiel #1
0
 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));
 }
Beispiel #2
0
 public Class2(string textData, DateTime dateTimeData, Class1 class1, Class3 class3)
 {
     TextData     = textData;
     DateTimeData = dateTimeData;
     Class1       = class1;
     Class3       = class3;
 }
Beispiel #3
0
 public Class1(string textData, DateTime dateTimeData, double doubleData, Class2 class2, Class3 class3)
 {
     TextData     = textData;
     DateTimeData = dateTimeData;
     DoubleData   = doubleData;
     Class2       = class2;
     Class3       = class3;
 }
Beispiel #4
0
 protected bool Equals(Class3 other)
 {
     return(TextData == other.TextData && DateTimeData.Equals(other.DateTimeData) &&
            Equals(Class2, other.Class2) && Equals(Class1, other.Class1));
 }