Bongo
Bongo

Reputation: 3153

Axapta operator overloading

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

Answers (1)

Jan B. Kjeldsen
Jan B. Kjeldsen

Reputation: 18051

Operator overloading is not supported.

See this list for other differences to C#.

Upvotes: 1

Related Questions