Restrictions on Operator Ov... - 0

ali • 15 August 2008 • C#, Programming

It is not possible to overload the = assignment operator. However, when you overload a binary operator, its compound assignment equivalent is implicitly overloaded. For example, if you overload the + operator, the += operator is implicitly overloaded in that the user-defined operator+ method will be called. The [] operators can’t be overloaded. However, user-defined [...]