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