Tuple<T1, T2, T3, T4, T5, T6, T7, TRest>.Rest Property
Assembly: mscorlib (in mscorlib.dll)
The property returns a nested Tuple object that allows access to the eighth though nth components of the tuple. Depending on the total number of components in the tuple, the values of the eighth through fourteenth components can be retrieved from the nested Tuple object's Item1 through Item7 properties. You can then use the property of a nested Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> object to retrieve the Tuple object at the next level of nesting.
You can dynamically determine the number of components in a nested Tuple object that is returned by the property by extracting the digit from its type name. The following example provides an illustration.
The following example creates a 17-tuple object that contains population data for the city of Detroit, Michigan, from 1860 to 2000. The seventh component of the 17-tuple is the population in 1900. The example uses the property to retrieve the values of the eighth through fourteenth components, and it uses the property of the nested Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> object to retrieve the values of the remaining components.