BrandGhost
Convert ANY Of Your C# Types Without Casting Using Implicit Operators

Convert ANY Of Your C# Types Without Casting Using Implicit Operators

C# is a strongly-typed language, and if we want to convert between various types in our code, we're often required to use explicit casting operators. This expresses that we want to go from one type to another very explicitly to readers of our code, and the compiler. But what if we want to be able to convert between types without casting? We can leverage implicit operators in C# to do this -- but we need to be aware of the pros and cons of doing so!
An error has occurred. This application may no longer respond until reloaded. Reload