By how many ways you can instantiate a tuple

By how many ways you can instantiate a tuple?

E

Expert

Verified

There following are two ways to instantiate a tuple:

i.    Use Create factory method which exists in the Tuple class.  Such as,
Tuple<int, int, int> t = Tuple.Create<int, int, int> (2, 3,4, );

ii.    Use new operator. Such as,
Tuple<String, int> t = new Tuple<String, int> ("Hello", 2);

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.