Performance difference between if-else and ternary operator

added by jalpesh
1/20/2013 5:43:42 AM

0 Kicks, 70 Views

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.


0 comments