Operator overloading
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

andrewRank #6,347 · 269 reputationPosted Feb 4, 2004, 5:17 PM EST
kovanRank #1,453 · 1.1K reputationPosted Feb 5, 2004, 12:50 PM EST
kovanRank #1,453 · 1.1K reputationPosted Feb 5, 2004, 12:51 PM EST
mdlardizabal51 reputationPosted Feb 6, 2004, 12:17 PM EST
mdlardizabal51 reputationPosted Feb 6, 2004, 12:18 PM EST
dd.d2 reputationPosted Jul 24, 2004, 11:27 AM EDT
Giovanni Bejarasco34 reputationPosted Jul 24, 2004, 9:34 PM EDT