c# tuple
var tupleList = new List<Tuple<int, string, string, string>>();
tupleList.Add(Tuple.Create(1, "Sefat Anam", "Dhaka Bangladesh", "0.1245345"));
c# tuple
var tupleList = new List<Tuple<int, string, string, string>>();
tupleList.Add(Tuple.Create(1, "Sefat Anam", "Dhaka Bangladesh", "0.1245345"));
tuple parameter name
// Tuples cannot be assigned parameter names.
//Instead you could do something like this:
(string name, int id) user = ("jack", 1);
Console.WriteLine($"{user.name}, {user.id}");
// Output:
// jack, 1
// When working with lists:
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}")):
// Output:
// jack, 1
// john, 2
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us