Answers for "c# initialize tuple"

C#
1

c# list tuple

var tupleList = new List<(int, string)>
  {
      (1, "cow"),
      (5, "chickens"),
      (1, "airplane")
  };
Posted by: Guest on March-20-2020
0

c# initialize tuple

var person = (1, "Bill", "Gates");
    
//equivalent Tuple
//var person = Tuple.Create(1, "Bill", "Gates");
Posted by: Guest on January-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language