Skip to content

Instantly share code, notes, and snippets.

@carlosschults
Created December 21, 2017 01:40
csharp8-using-the-new-operator.cs
public void Foo(string? bar)
{
if (!bar.IsNullOrEmpty())
{
var length = bar!.Length;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment