public ClassB(SerializationInfo serializationInfo, StreamingContext streamingContext) { ClassName = serializationInfo.GetString("ClassName"); ExampleInt = serializationInfo.GetInt32("ExampleInt"); ExampleC = (ClassC)serializationInfo.GetValue("ExampleC", typeof(ClassC)); }
public ClassB(string className, int exampleInt, ClassC exampleC) { ClassName = className; ExampleInt = exampleInt; ExampleC = exampleC; }