Writing high performance code despite C#

added by DotNetKicks
9/13/2019 5:06:02 PM

2 Kicks, 366 Views

Consider the following C code snippet: This code cannot be written in C#. Why? Because you can't use '+' on bool, and you can't cast bools. So I wrote this code, instead: And then I changed it to be this code: Can you tell why I did that?