Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Last active October 27, 2017 01:55
Show Gist options
  • Save dcomartin/55bfeeb618ef47641cdbc0ec0aa04dbd to your computer and use it in GitHub Desktop.
Save dcomartin/55bfeeb618ef47641cdbc0ec0aa04dbd to your computer and use it in GitHub Desktop.
string nameNull = null;
Console.WriteLine(RemoveWhitespace(name).ToUpper()); // NullReferenceException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment