dotnet posts
Casting and Type Conversion Best Practices in C#

Casting and Type Conversion Best Practices in C#

Jan 19 2018 — Type casting or type converting is a common occurrance in C#, and as the language has evolved new methods and operators have been introduced that handle type conversion in varying ways. Over the years, I have built up my own set of best practices and decided to get them out of my head with the goal of soliciting feedback and hopefully refining them further.