Created
June 10, 2018 08:53
-
-
Save christiannagel/a03ace71d07a2e7df5f326984d09c008 to your computer and use it in GitHub Desktop.
Nullability with C# 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int i1 = 4; // null is not allowed | |
int? i2 = null; // null is allowed | |
string s1 = "a string"; // null is not allowed | |
string? s2 = null; // a nullable string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment