+ 1

Is it possible to make a local method generic and then overload it?

Or will type constraints prevent this from being a possibility.

1st Oct 2019, 8:29 PM
Josh S
Josh S - avatar
2 Respuestas
+ 1
Yes it can. A generic type does not have constraint regarding overloading. https://www.interviewsansar.com/2015/05/24/can-we-overload-a-generic-method/
2nd Oct 2019, 7:17 PM
sneeze
sneeze - avatar
+ 1
thank you very much for your response and answer!
2nd Oct 2019, 9:29 PM
Josh S
Josh S - avatar