+ 1

Can we implement Operator Overloading using generics in c#??

6th Oct 2019, 7:33 AM
Paras Jain
Paras Jain - avatar
3 Antworten
+ 1
This worked only for integer values,but not for strings.
6th Oct 2019, 10:36 AM
Paras Jain
Paras Jain - avatar
0
Yes you can!! But I can't able to give you information about this. Might this helps you !! https://stackoverflow.com/q/14020486/9973584
6th Oct 2019, 10:30 AM
Chirag Kumar
Chirag Kumar - avatar
0
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/
6th Oct 2019, 3:12 PM
sneeze
sneeze - avatar