Skip to content

Instantly share code, notes, and snippets.

@Blind-Striker
Created September 6, 2017 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blind-Striker/045860b78195ac9d8e96965643604d13 to your computer and use it in GitHub Desktop.
Save Blind-Striker/045860b78195ac9d8e96965643604d13 to your computer and use it in GitHub Desktop.
Tuple Type, Tuple Literal Example for blog
public (int, string, string, string) GetUserById(int userId) // Tuple Type
{
// verilerin bir datasource'dan geldiğini düşünelim
int id = 1;
string firstName = "Deniz";
string lastName = "İrgin";
string email = "deniz@denizirgin.com";
return (id, firstName, lastName, email); // Tuple Literal
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment