Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creating Tuple in C#
public static Tuple<string, string, int> OldWay_UserInfo()
{
string firstName = "Shahriar";
string lastName = "Hossain";
int yearsOfExpertise = 4;
Tuple<string, string, int> userInfo = new Tuple<string, string, int>(firstName, lastName, yearsOfExpertise);
//or
//var userInfo = Tuple.Create(firstName, lastName, yearsOfExpertise);
return userInfo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.