Axapta 运算符重载
Axapta operator overloading
我想知道是否可以在 x++ 中重载 == 运算符。
在 C# 中我会这样做
public static bool operator == (SomeObject obj1, SomeObject obj2)
{
bool status = false;
//Compare the objects
return status;
}
不支持运算符重载。
有关与 C# 的其他差异,请参阅 this list。
我想知道是否可以在 x++ 中重载 == 运算符。
在 C# 中我会这样做
public static bool operator == (SomeObject obj1, SomeObject obj2)
{
bool status = false;
//Compare the objects
return status;
}
不支持运算符重载。
有关与 C# 的其他差异,请参阅 this list。