Skip to content

Instantly share code, notes, and snippets.

@mitchgollub
Created July 14, 2019 21:47
Show Gist options
  • Save mitchgollub/e7c161a0fbfc0f80a0eff4c16d837aa8 to your computer and use it in GitHub Desktop.
Save mitchgollub/e7c161a0fbfc0f80a0eff4c16d837aa8 to your computer and use it in GitHub Desktop.
defensive-programming-strings-2
Object shares = getValueFromField("SHARES");
Shares = shares?.ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment