Mots clés : c#null-coalescing-operatorc#
94
FormsAuth = formsAuth ?? new FormsAuthenticationWrapper();
FormsAuth = formsAuth != null ? formsAuth : new FormsAuthenticationWrapper();
if(formsAuth != null) FormsAuth = formsAuth; else FormsAuth = new FormsAuthenticationWrapper();
string Answer = Answer1 ?? Answer2 ?? Answer3 ?? Answer4;
84
a ?? b ?? c ?? d
78
// y = x, unless x is null, in which case y = -1. int y = x ?? -1;
60
string final = str1 ?? str2 ?? str3 ?? str4;