how to put tuple in parameters c# code example
Example 1: c# tuple
var tupleList = new List<Tuple<int, string, string, string>>();
tupleList.Add(Tuple.Create(1, "Sefat Anam", "Dhaka Bangladesh", "0.1245345"));
Example 2: tuple parameter name
(string name, int id) user = ("jack", 1);
Console.WriteLine($"{user.name}, {user.id}");
List<(string name, int id)> users = new List<(string, int)>();
users.Add(("jack", 1));
users.Add(("john", 2));
users.ForEach((x) =>
Console.WriteLine($"{x.name}, {x.id}")):