Exemple #1
0
 public ClassB(SerializationInfo info, StreamingContext context)
 {
     FloatProperty    = info.GetSingle("FloatProperty");
     DateTimeProperty = info.GetDateTime("DateTimeProperty");
     StringProperty   = info.GetString("StringProperty");
     ClassCProperty   = (ClassC)info.GetValue("ClassCProperty", typeof(ClassC));
 }
Exemple #2
0
 public ClassB(float floatProperty, DateTime dateTimeProperty, string stringProperty, ClassC classCProperty)
 {
     FloatProperty    = floatProperty;
     DateTimeProperty = dateTimeProperty;
     StringProperty   = stringProperty;
     ClassCProperty   = classCProperty;
 }