public struct Point2D
{
public static Tuple<int,int> Point2d( int x, int y)
{
var tu = new Tuple<int, int>(x, y);
return tu;
}
}
public class MyType
{
public int a = 0;
public int b = 0;
public MyType(int a = 0, int b = 0)
{
this.a = a;
this.b = b;
}
}
public static MyType Point2d(int x, int y)
{
return new MyType(x, y);
}
public static MyType Point2d(int x, int y)
{
MyType result = new MyType(x, y);
return result;
}
public static MyType Point2d(int x, int y)
{
MyType result = new MyType();
result.a = x;
result.b = y;
return result;
}
public static MyType Point2d(int x, int y)
{
MyType result = new MyType(x);
result.b = y;
return result;
}
struct MY_TYPE_DATA
{
private int integer_x;
public static implicit operator MY_TYPE_DATA(int _x)
{
return new MY_TYPE_DATA { integer_x = _x };
}
public static explicit operator int(MY_TYPE_DATA count)
{
return count.integer_x;
}
public static int operator +(MY_TYPE_DATA x, int y)
{
return x.integer_x + y;
}
public static int operator +( int y,MY_TYPE_DATA x)
{
return y + x.integer_x;
}
}
MY_TYPE_DATA c = 19;
int zxc = 10 + c;