.NET Framework interview questions


Total available count: 30
Subject - Microsoft Technologies
Subsubject - .NET Framework

What is Tuples?

Tuples is another good feature of .NET framework 4.0. The .NET Framework 4 provides the System.Tuple class for creating tuple objects that contain structured data.

The .NET Framework directly supports tuples with one to seven elements. In addition, you can create tuples of eight or more elements by nesting tuple objects in the Restproperty of a Tuple System.Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> object.

Tuples are useful in the following ways,

  1. To represent a single set of data
  2. To provide easy access to, and manipulation of, a data set
  3. To return multiple values from a method without using out parameters
  4. To pass multiple values to a method through a single parameter





Comments