add ISafeSerializationData
[mcs.git] / tests / gtest-283.cs
blob01c8fc4497d0276bf53697dc26d5afe105d437a9
1 public interface IFoo
3 void Foo<T>(ref T? v) where T:struct;
4 void Foo<T>(ref T v) where T:new();
7 public struct Point
9 int x, y;
10 public Point(int x, int y) { this.x = x; this.y = y; }
13 struct TestPoint
15 public static void Serialize(IFoo h)
17 Point point1 = new Point (0, 1);
18 Point? point2 = new Point (1, 2);
19 h.Foo (ref point1);
20 h.Foo (ref point2);
22 public static void Main(){}