Operator Overloading with Implicit and Explicit Casts in C#

added by learndotnet
9/18/2010 5:45:56 AM

0 Kicks, 66 Views

Its been a very common mistake of not declaring implicit and explicit cast operator overloads while working with data types which might take part in some calculations in long run. Many of the developers don't know why we use checked or unchecked while doing calculations. This post is an article on how you can use Cast overloads to get your job done easily when you require your type to take part in arithmetic operations and casts to arithmetic data types