T
Tony Johansson
Assume I have this expression
int extra = -2:
If (extra > 0 && productRepository.ExistQuantityInStock(Id,antal))
{
}
I assume that in this example will never the second expression be evaluated
because extra is negaive.
So could I be sure that the evaluation sequence is always from left to
right.
If I can't be sure of that I have to put an if clause before
//Tony
int extra = -2:
If (extra > 0 && productRepository.ExistQuantityInStock(Id,antal))
{
}
I assume that in this example will never the second expression be evaluated
because extra is negaive.
So could I be sure that the evaluation sequence is always from left to
right.
If I can't be sure of that I have to put an if clause before
//Tony