Sunday 4 April 2021

C# How to Insert Values in Tuple List

 void Main()
{
    List<Tuple<int,string>> ab = new List<Tuple<int,string>>();
    ab.Add(Tuple.Create(1,"hello1"));
    ab.Add(Tuple.Create(2,"hello2"));
    ab.Add(Tuple.Create(3,"hello3"));
    ab.Add(Tuple.Create(4,"hello4"));
    ab.Add(Tuple.Create(5,"hello5"));
    ab.Add(Tuple.Create(6,"hello6"));
    ab.Add(Tuple.Create(7,"hello7"));

}

No comments:

Post a Comment