Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created March 14, 2015 08:57
Show Gist options
  • Save ufcpp/80b77a3667f22b3f2caa to your computer and use it in GitHub Desktop.
Save ufcpp/80b77a3667f22b3f2caa to your computer and use it in GitHub Desktop.
make tuple from out parameters
bool TryGet(out int value){ ... }
/* current style */
int value;
bool b = TryGet(out value);
/* New style */
(int value, bool b) = TryGet();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment