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