5 Bad Practices to Avoid in C#

Christ khodabakhshi
2 min readDec 10, 2022

In this post, I want to give 5 little examples of bad practices in C# and what can be done instead to improve your code a little bit. If you are an intermediate C# developer, you should know these already, and if not you will learn them today.

Use Ternary Operator Instead of If Else

--

--

Christ khodabakhshi

Software developer, dad, coffee fan, and keen on talking about business ideas and investments.