What is Operator Overloading in .NET


What is Operator Overloading in .NET?

✍: Guest


It provides a way to define and use operators such as +, -, and / for user-defined classes or structs. It allows us to define/redefine the way operators work with our classes and structs. This allows programmers to make their custom types look and feel like simple types such as int and string.
VB.NET till now does not support operator overloading. Operator overloading is done by using the “Operator” keyword.

2007-10-23, 5448👍, 0💬