What is the overload ability of operators in C#


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.

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 22-Jun-2020

56 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements