7
Answers

Operator overloading

mdlardizabal

mdlardizabal

20y
3.4k
1
Hi, I'm working on several business objects that inherit and expose int32, datetime and string data types. Something like outInt32, ourString, ourDateTime. Now, I was able to overload most of the operators like ==, !=, >=, ++ and soon but I am stuck because I can't overload the assignment operator =. Has someone been able to overload the assignment operator successfully, I know it says in the docs that you can't but C# has a special method assigned for it called op_Assign, how would I be able to override that one using the operator keyword. Hanggang sa muli, Tikbalang
Answers (7)
Next Recommended Forum