3 ms·
>C# generics have some downright nasty interactions with other parts of the type system, like operator overloading. Operators are static methods so why is that
by jayd16 5y ago
>C# generics have some downright nasty interactions with other parts of the type system, like operator overloading.
Operators are static methods so why is that surprising or nasty?
- klodolph 5y agoIt affects method overloading too, I should have said “method overloading”. Just take a look at the rules for method overloading in C#, or take a look at one of the various C# compilers to see how methods are resolved.