Created
September 6, 2017 12:11
-
-
Save Blind-Striker/2975a5801a617df0cec539e66bd9f7eb 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 Id, string FirstName, string LastName, string Email) 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