Exemplo n.º 1
0
 public static void Deserialize(this IShape shape, SerializationInfo serializationInfo)
 {
     shape.Pen   = serializationInfo.GetPen("Pen");
     shape.Brush = serializationInfo.GetBrush("Brush");
     shape.Start = serializationInfo.GetValue <Point>("Start");
     shape.End   = serializationInfo.GetValue <Point>("End");
 }