Se afișează postările cu eticheta Operators. Afișați toate postările
Se afișează postările cu eticheta Operators. Afișați toate postările

luni, 25 august 2014

?? Operator (C# Reference)

The ?? operator,also called the null-coalescing operator,returns the left-hand operand if it is not null, or else it returns the right operand.

Example

 // y = x, unless x is null, in which case y = 0.
int y = x ?? 0;

Relation Operators (C#)

== Equal

!= Not equal

Less than

<= Less than or equal to

Greater than

>= Greater than or equal