0
votes

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;
}
1

1 Answers

1
votes

Operator overloading is not supported.

See this list for other differences to C#.