Created
September 6, 2017 12:09
-
-
Save Blind-Striker/045860b78195ac9d8e96965643604d13 to your computer and use it in GitHub Desktop.
Tuple Type, Tuple Literal Example for blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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