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)); }
public ClassB(DateTime dateTimeProperty, decimal decimalProperty, string stringProperty, ClassC classCProperty) { DateTimeProperty = dateTimeProperty; DecimalProperty = decimalProperty; StringProperty = stringProperty; ClassCProperty = classCProperty; }