How to Automatically Cast Between Types in C#
The post How to Automatically Cast Between Types in C# appeared first on Dev Leader. To automatically cast between types in C#, we need to look at something called implicit operators in C#. In particular, we’ll need to define what are static implicit operators. By defining these on our types, we can instruct the compiler…