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
Would be nice to have an operator to assign a value just when it's null:
// If values is null, execute statement on the right and assign.
values ?= new List<string>();
// Instead of:
if(values == null) values = new List<string>();
// Or even worse:
values = values ?? (values = new List<string>());
The text was updated successfully, but these errors were encountered:
Please consider this enhancement:
Any version:
Null conditional assignment:
Would be nice to have an operator to assign a value just when it's null:
The text was updated successfully, but these errors were encountered: