What are the Tuple Limitations in C#?

Category: C SharpWhat are the Tuple Limitations in C#?
Editor">Editor Staff asked 2 years ago

What are the Tuple Limitations in C#?

1 Answers
Editor">Editor Staff answered 2 years ago

Tuple Limitations:
The Tuple is a reference type and not a value type. It allocates on heap and could result in CPU intensive operations.
The Tuple is limited to include eight elements. You need to use nested tuples if you need to store more elements. However, this may result in ambiguity.
The Tuple elements can be accessed using properties with a name pattern Item, which does not make sense.