![]() Read more about Short-circuit evaluation on wikipedia. Short-circuit evaluation means the second argument is executed or evaluated only if the first argument does not suffice to determine the value of the expression. These conditional operators use Short-circuit evaluation to conditionally return one of two values. you can somehow achieve a similar effect in vb.net using nested binary If operator, but It might make the code harder to read and maintain. ![]() In additional to the above, and particularly in C#, there is a feature, you can add as many as you want from the null coalescing operators it is called the chained null coalescing operator ? …etc. It can be done using the ternary/binary If operators in vb.net and their equivalent operators, the conditional operator ? : and the null coalescing operator ? net with true and false sides in a single line of code? Do you know that you can write a nested conditional statement in.
0 Comments
Leave a Reply. |