0
kicks
Performance difference between if-else and ternary operator
I was refactoring some code with resharper and it suggested me that I should convert my if else into the ternary operator. So I thought that really there is a performance difference between if-else and ternary operator?
Let’s check with an example. Following is a code for that.