Summarizing the Operators to Overload - CSharp Custom Type

CSharp examples for Custom Type:Operator Overloading

Introduction

Operators That Can Be Overloaded


+  -  ++  --  !  ~  true  false

+  -  *  /  %  &  |  ^  <<  >>

<  <=  >  >=  ==  !=

Operators That Cannot Be Overloaded

=  .  ?:  &&  ||  new  is

The compound operators use the binary overloaded operators.

[] are overloaded by using indexers.


Related Tutorials