We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A built-in operator like '?=' to assign a value to variable, if the current value is null.
The expected behavior
Instead of writing
List<short> listOfNumbers = null; [...] if (listOfNumbers == null) { listOfNumbers = new List<short>(); }
Simply write this
List<short> listOfNumbers = null; [...] listOfNumbers ?= new List<short>();
The text was updated successfully, but these errors were encountered:
#10556, #10249, #9529, #8894, #5163, #3366, #205
Sorry, something went wrong.
listOfNumbers = listOfNumbers ?? new List<short>();
No branches or pull requests
A built-in operator like '?=' to assign a value to variable, if the current value is null.
The expected behavior
Instead of writing
Simply write this
The text was updated successfully, but these errors were encountered: