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