Skip to content

Instantly share code, notes, and snippets.

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);
//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