Skip to content

Instantly share code, notes, and snippets.

@carlosschults
Created December 21, 2017 01:40
Show Gist options
  • Save carlosschults/008709a0b9ff6a72abc8fc4882a467d3 to your computer and use it in GitHub Desktop.
Save carlosschults/008709a0b9ff6a72abc8fc4882a467d3 to your computer and use it in GitHub Desktop.
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