Skip to content

Instantly share code, notes, and snippets.

@jsauve
Created February 18, 2015 15:50
Show Gist options
  • Save jsauve/3e3de4ba15d89c9ced4d to your computer and use it in GitHub Desktop.
Save jsauve/3e3de4ba15d89c9ced4d to your computer and use it in GitHub Desktop.
Three line ternary
logoImageUrl =
!String.IsNullOrEmpty(logoImageUrl) ?
logoImageUrl : null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment