I need to define an Interface which has to enforce certain operator overloading to the types which implements it. There doesn’t seem an obvious way to do it since operator overloading has to be done using static methods in class. Is there any way to achieve the same effect (using abstract classes or anything else)?
I need to define an Interface which has to enforce certain operator overloading to
Share
Bit of a hack, but…
You could provide operator overloads in your base class that then call some published abstract methods in one of the classes to do the job there.