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