public ExampleC(SerializationInfo info, StreamingContext context) { this.FloatTest = info.GetSingle("float"); this.StringTest = info.GetString("string"); this.DateTest = info.GetDateTime("date"); this.Reference = (ExampleA)info.GetValue("refercnceA", typeof(ExampleA)); }
public ExampleC(float floatTest, string stringTest, DateTime dateTest, ExampleA reference) { this.FloatTest = floatTest; this.StringTest = stringTest; this.DateTest = dateTest; this.Reference = reference; }