What is the overload ability of operators in C#

CsharpProgrammingServer Side Programming

Here is the list of the operator that can be overloaded in C# and which do not have the capability to overload.

Sr.NoOperator & Description
1+, -, !, ~, ++, --
These unary operators take one operand and can be overloaded.
2+, -, *, /, %
These binary operators take one operand and can be overloaded.
3==, !=, <, >, <=, >=
The comparison operators can be overloaded.
4&&, ||
The conditional logical operators cannot be overloaded directly.
5+=, -=, *=, /=, %=
The assignment operators cannot be overloaded.
6=, ., ?:, -<, new, is, sizeof, typeof
These operators cannot be overloaded.
raja
Published on 16-Aug-2018 14:44:00
Advertisements