|
Тема |
Re: пример [re: z_free] |
|
Автор | vector (Нерегистриран) | |
Публикувано | 04.01.05 13:02 |
|
|
Това го има в спецификацията. И в оригинала (Java) и в C# се използват "&&" и "||" ако не искаш да се проверяват условията които не влияят на крайния резултат.
От MSDN:
The && and || operators are conditional versions of the & and | operators:
The operation x && y corresponds to the operation x & y, except that y is evaluated only if x is true.
The operation x || y corresponds to the operation x | y, except that y is evaluated only if x is false.
|
| |
|
|
|