Skip to content

Instantly share code, notes, and snippets.

@hk1ll3r
Last active January 27, 2020 22:52
Show Gist options
  • Save hk1ll3r/064693655cf2c03833b11cec7e88a99b to your computer and use it in GitHub Desktop.
Save hk1ll3r/064693655cf2c03833b11cec7e88a99b to your computer and use it in GitHub Desktop.
gist 1: basic usage
float x, y;
public ValueTuple<float, float> GetPosition() {
return ValueTuple.Create(_x, _y);
}
// Is exactly the same as GetPosition above
public (float, float) GetPositionAlternateSyntax() {
return (_x, _y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment