Код: Выделить всё
public struct Point
{
static Point IntOrigin = new Point(0, 0);
T X { get; }
T Y { get; }
public Point(T x, T y)
{
this.X = x;
this.Y = y;
}
}
Подробнее здесь: https://stackoverflow.com/questions/638 ... ic-type-in
Код: Выделить всё
public struct Point
{
static Point IntOrigin = new Point(0, 0);
T X { get; }
T Y { get; }
public Point(T x, T y)
{
this.X = x;
this.Y = y;
}
}