The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand.
int y = x ?? -1;
oppure
if ((reader.GetAttribute("showheader") ?? String.Empty).ToUpper() == "TRUE")
Print | posted on giovedì 9 agosto 2007 18:35 | Filed Under [ Scoperte di un principiante ]
Powered by:
Copyright © Daniele Armanasco