How can I make an comparison of 3 conditions without a switch or if in C#?
<p>I have to compare a value, if the value is less or equal than 3, then do something, if value is bettwen 4 and 27, then do something else, but if the value is more than 28 do something else, is there any elegant way which doesn't consume a lot of resources and I can avoid using switch of if?? I have to compare around 60k+ values.</p>
