Beispiel #1
0
 public ClassB(SerializationInfo info, StreamingContext context)
 {
     DateTimeProperty = info.GetDateTime("DateTimeProperty");
     DecimalProperty  = info.GetDecimal("DecimalProperty");
     StringProperty   = info.GetString("StringProperty");
     ClassCProperty   = (ClassC)info.GetValue("ClassCProperty", typeof(ClassC));
 }
Beispiel #2
0
 public ClassB(DateTime dateTimeProperty, decimal decimalProperty, string stringProperty, ClassC classCProperty)
 {
     DateTimeProperty = dateTimeProperty;
     DecimalProperty  = decimalProperty;
     StringProperty   = stringProperty;
     ClassCProperty   = classCProperty;
 }