示例#1
0
 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));
 }
示例#2
0
 public ExampleA(float floatTest, string stringTest, DateTime dateTest, ExampleB reference)
 {
     this.FloatTest  = floatTest;
     this.StringTest = stringTest;
     this.DateTest   = dateTest;
     this.Reference  = reference;
 }