コード例 #1
0
 public ClassB(SerializationInfo serializationInfo, StreamingContext streamingContext)
 {
     ClassName  = serializationInfo.GetString("ClassName");
     ExampleInt = serializationInfo.GetInt32("ExampleInt");
     ExampleC   = (ClassC)serializationInfo.GetValue("ExampleC", typeof(ClassC));
 }
コード例 #2
0
 public ClassB(string className, int exampleInt, ClassC exampleC)
 {
     ClassName  = className;
     ExampleInt = exampleInt;
     ExampleC   = exampleC;
 }