[nem-en] Operator ??

Igor Tkachev it at rsdn.ru
Sun Sep 17 20:05:50 CEST 2006


Hi All,

C# has the ?? operator which is the shortest form of the short if:

a = b == null ? c : b;

Instead of this we can write the following:

a = b ?? c;

It came with nullable types, but also works fine with reference types.

Can we get something like that?

-- 
Best regards,
 Igor                          mailto:it at rsdn.ru





More information about the devel-en mailing list