Reputation: 3153
I was wondering if it is possible to overload the == operator in x++.
In C# I would do it like this
public static bool operator == (SomeObject obj1, SomeObject obj2)
{
bool status = false;
//Compare the objects
return status;
}
Upvotes: 0
Views: 47
Reputation: 18051
Operator overloading is not supported.
See this list for other differences to C#.
Upvotes: 1