C# | How to get the Remaining Elements of the Tuple? Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. As we know that by using Item<ElementNumber> property we can get the elements present in the tuples, but this property works only for seven elements. If you want to get the remaining element then you must go for Rest property. Rest property allows you to get the remaining element of the tuple other than the starting seven elements. Syntax: public TRest Rest { get; } Here, TRest is the value of the current Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> object's remaining components. Example: CSharp // C# program to illustrate the // concept of Rest property using System; class GFG { // Main Method static public void Main() { // Creating 8-tuple var stu = Tuple.Create("Mohan", 24, "CSE", 2016, 209, 235678909, "C#", 1); // Accessing first element Console.WriteLine("Student Name: " + stu.Item1); // Accessing Second element Console.WriteLine("Student Age: " + stu.Item2); // Accessing third element Console.WriteLine("Student Branch: " + stu.Item3); // Accessing fourth element Console.WriteLine("Student Passing Year: " + stu.Item4); // Accessing fifth element Console.WriteLine("Student Id: " + stu.Item5); // Accessing sixth element Console.WriteLine("Student Contact Number: " + stu.Item6); // Accessing seventh element Console.WriteLine("Student Fav Programming Language: " + stu.Item7); // Accessing remaining element // Using Rest property Console.WriteLine("Student Rank: " + stu.Rest); } } Output: Student Name: Mohan Student Age: 24 Student Branch: CSE Student Passing Year: 2016 Student Id: 209 Student Contact Number: 235678909 Student Fav Programming Language: C# Student Rank: (1) Note: You can also use Rest property to get the elements of the nested tuple. Example: CSharp // C# program to illustrate how to access // nested tuple using Rest property using System; class GFG { // Main Method static public void Main() { // Creating 8-tuple var stu = Tuple.Create("Guriya", 24, "CSE", 2016, 209, 235678909, 1, Tuple.Create("C#", "C++", "Java", "Python")); // Accessing first element Console.WriteLine("Student Name: " + stu.Item1); // Accessing Second element Console.WriteLine("Student Age: " + stu.Item2); // Accessing third element Console.WriteLine("Student Branch: " + stu.Item3); // Accessing fourth element Console.WriteLine("Student Passing Year: " + stu.Item4); // Accessing fifth element Console.WriteLine("Student Id: " + stu.Item5); // Accessing sixth element Console.WriteLine("Student Contact Number: " + stu.Item6); // Accessing seventh element Console.WriteLine("Student Rank: " + stu.Item7); // Accessing remaining element // or accessing the elements of nested tuple // Using Rest property Console.WriteLine("Student Fav. Programming Language: " + stu.Rest); } } Output: Student Name: Guriya Student Age: 24 Student Branch: CSE Student Passing Year: 2016 Student Id: 209 Student Contact Number: 235678909 Student Rank: 1 Student Fav. Programming Language: ((C#, C++, Java, Python)) Comment More infoAdvertise with us Next Article C# | How to get Third Element of the Tuple? A ankita_saini Follow Improve Article Tags : C# CSharp-Tuple Similar Reads C# | How to get Seventh Element of the Tuple? Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. Item7 Property is used to get the seventh element of the given tuple. It is not applicable on 1-Tuple, 2-Tuple, 3-Tuple, 4-Tuple, 5-Tuple, and 6-tupl 2 min read C# | How to get Sixth Element of the Tuple? Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. Item6 Property is used to get the sixth element of the given tuple. It is not applicable on 1-Tuple, 2-Tuple, 3-Tuple, 4-Tuple, and 5-Tuple but appli 2 min read C# | How to get Third Element of the Tuple? Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. Item3 Property is used to get the third element of the given tuple. It is not applicable on 1-Tuple, 2-Tuple but applicable on all other remaining tu 2 min read C# | How to get Second Element of the Tuple? Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. Item2 Property is used to get the second element of the given tuple. It is not applicable on 1-Tuple and applicable on all other remaining tuples. Sy 2 min read C# | How to get First Element of the Tuple? Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. Item1 Property is used to get the first element of the given tuple. It is applicable on every tuple like 1-Tuple, 2-Tuple, and so on. Syntax: public 2 min read C# | How to get Fifth Element of the Tuple? Tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. Item5 Property is used to get the fifth element of the given tuple. It is not applicable on 1-Tuple, 2-Tuple, 3-Tuple, and 4-Tuple but applicable on 2 min read Like