Quantcast
Channel: Two if conditions or one if with OR - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by freak for Two if conditions or one if with OR

$
0
0

Here the performance difference will not be noticeable .But definitely the second one is better.

1) The readablity is better for second.

2) second snippet is more logical than first one .

3) If we see IL with ILDASM then the number of lines in assembly for the first snippet will be more than that of the second one. So, the code size is more for first snippet. It's better if the size of the assembly is less.


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>