+ 1

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

6th Oct 2019, 7:33 AM
Paras Jain
Paras Jain - avatar
3 Réponses
+ 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
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes
Create Agent
0 Votes