Skip to content

Instantly share code, notes, and snippets.

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