ITuple ITuple ITuple ITuple Interface


Defines a general-purpose Tuple implementation that allows acccess to Tuple instance members without knowing the underlying Tuple type.

public interface class ITuple
public interface ITuple
type ITuple = interface
Public Interface ITuple


You use the ITuple interface to access individual elements of a Tuple instance without knowing beforehand the number of elements in the Tuple. You determine the number of items in the Tuple by retrieving the value of the Length property. You can then enumerate its elements by passing an index that ranges from zero to one less than value of the Length property to the Item[Int32] property.

ITuple is an explicit interface implementation of the Tuple classes and the ValueTuple structures. You must cast the Tuple object to an ITuple interface object before you can access its properties.


Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Returns the value of the specified Tuple element.

Length Length Length Length

Gets the number of elements in this Tuple instance.

Applies to