Created
June 10, 2018 08:53
Star
You must be signed in to star a gist
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