You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without using the null coalescing operator in C#6, Exception shows me "Add documentation for ArgumentNullException" for the following code, which is good:
var results = GetAListSomewhere();
var result = results.FirstOrDefault(); //<--- PROMPT HERE
return result;
However, the prompt is unnecessary here, as the method would not be called.
var results = GetAListSomewhere();
var result = results?.FirstOrDefault(); //<--- PROMPT HERE
return result;
The text was updated successfully, but these errors were encountered:
Without using the null coalescing operator in C#6, Exception shows me "Add documentation for ArgumentNullException" for the following code, which is good:
However, the prompt is unnecessary here, as the method would not be called.
The text was updated successfully, but these errors were encountered: