0 votes
in Technology by (557k points)
What are the tuples and how many elements it have?

1 Answer

0 votes
by (557k points)

A tuples in .Net have fixed-size collection which can either have same or different types of data types. And user must have to define the size of tuple at time when we declare. And declaration is just like arrays.

A tuple can have 1 to 8 elements in it. If we have more then 8 elements then 8th elements can be defined as another tuples. And tuples can be specified as parameter or return type of a method.