Share via

ITuple Interface


Defines a general-purpose Tuple implementation that allows access 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 or types 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[] 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.



Returns the value of the specified Tuple element.


Gets the number of elements in this Tuple instance.

Applies to