Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Tuples in C#

public class Program
    {
        static void Main(string[] args)
        {
           var test = new Tuple<int, int> ( 10,11);
            Console.WriteLine(test.Item1);
            Console.WriteLine(test.Item2);

            var hugeTuble = Tuple.Create(1,2,3,4,5,6,7,(1,2,3,4,5,6,7,8));
            Console.ReadLine();
        }
    }
Source by learn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #Tuples
ADD COMMENT
Topic
Name
6+7 =