"It's possible to overload [== and !=] such that they return a non-bool type, but this is almost never done in practice."

-C# in a Nutshell

Follow

@peterdrake I override == so it returns a string that says "Yes this is equals" or "No this is not equals", but override != to return "Please use the == operator instead thanks"... I amt he helpful programmer :)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.