Search code examples
c#extension-methodsoverridingbinary-operators

C#: Binary Operator Overloading : Without containing type?


Is there anyway to overload a binary operator without have the containing type or using an extension method?

I want to override the == operator between two byte arrays, and hopefully, without an extension method.

Any help is greatly appreciated.


Solution

  • This is completely impossible; extension operators do not exist.