Is there a short hand method for handling a two comparisons in a conditional statement?
For example:
if(ReturnedCount > 0 && ReturnedCount < 50)
{
...
}
I'm fairly certain that a variable must always be on the left hand side of an operator because when I tried the following it didn't work:
if(0 < ReturnedCount < 50)
{
...
}
I did a search on google for the c# equivalent of the between keyword in SQL and got no good results.
Is there a better way to handle this sort of double comparison for the same variable?