I am trying to write operator overload for custom class and don't know how to handle null comparison.
Class Customer
{
int id;
public static bool operator ==(Customer a, Customer b)
{
//When both a and b are null don't know how to compare as can't use == in here as
//it will fall into loop
}
}
Problem is when a and b both are null result is true but not sure how to check it without using ==.