public BasicISerializableObject(SerializationInfo info, StreamingContext context) { _data = new NonSerializablePair <int, string> { Value1 = info.GetInt32("Value1"), Value2 = info.GetString("Value2") }; }
public BasicISerializableObject(int value1, string value2) { _data = new NonSerializablePair <int, string> { Value1 = value1, Value2 = value2 }; }