C ++ and C # operator overloading =

Before using C ++, the general routine is to use the copy constructor time, the way the = operator overloading it, so relatively safe, others can use the copy constructor when using my classes were and assignment operators a.

 

Now use C #, I found the copy constructor is no problem, but the = operator can not be overloaded! ! !

 

WTF。

 

Guess you like

Origin www.cnblogs.com/castor-xu/p/11681429.html