using System;
struct GenStruct {
T x;
T y;
public GenStruct(T a, T b) {
x = a;
y = b;
}
public T X {
get { return x; }
set { x = value; }
}
public T Y {
get { return y; }
set { y = value; }
}
}
class MainClass {
public static void Main() {
GenStruct xy = new GenStruct(10, 20);
GenStruct xy2 = new GenStruct(88.0, 99.0);
Console.WriteLine(xy.X + ", " + xy.Y);
Console.WriteLine(xy2.X + ", " + xy2.Y);
}
}
10, 20
88, 99