Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Nullability with C# 8
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