use of tuple in C#

 

For Example: Write a program to demonstrate the use of tuple.

class Program

    {

        static void Main(string[] args)

        {

                                    

                var t1= Tuple.Create(1, "Nintn", "Patil", "Barshi");

                Console.WriteLine(t1);

                Console.ReadLine();      

           

        }

    }

Output:

Comments

Popular posts from this blog

simple program C#

Regular Expression Validator Control in asp.net

two dimension array in C#