How to create 3-Tuple or Triple Tuple in C#? Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report In C#, a 3-tuple is a tuple that contains three elements and it is also known as triple. You can create a 3-tuple using two different ways: Using Tuple<T1,T2,T3>(T1, T2, T3) Constructor Using the Create method Using Tuple<T1,T2,T3>(T1, T2, T3) Constructor You can create 3-tuple using Tuple<T1, T2,T3>(T1, T2, T3) constructor. It initializes a new instance of the Tuple<T1, T2, T3> class. But when you create a tuple using this constructor then you have to specify the type of the element stored in the tuple. Syntax: public Tuple (T1 item1, T2 item2, T3 item3); Parameters: item1: It is the value of the first tuple component. item2: It is the value of the second tuple component. item3: It is the value of the third tuple component. Example: CSharp // C# program to create 3-tuple // using the tuple constructor using System; public class GFG { // Main method static public void Main() { // Creating tuple with three elements // Using Tuple<T1, T2, T3>(T1, T2, T3) constructor Tuple<string, int, char> My_Tuple = new Tuple<string, int, char>("GeeksforGeeks", 10, 'C#'); Console.WriteLine("Element 1: " + My_Tuple.Item1); Console.WriteLine("Element 2: " + My_Tuple.Item2); Console.WriteLine("Element 3: " + My_Tuple.Item3); } } Output: Element 1: GeeksforGeeks Element 2: 10 Element 3: C# Using Create Method You can also create 3-tuple with the help of Create method. When you use this method then there is no need to specify the type of the elements stored in the tuple. Syntax: public static Tuple<T1,T2,T3> Create<T1, T2, T3> (T1 item1, T2 item2, T3 item3); Type Parameters: T1: It is the type of the first tuple component. T2: It is the type of the second tuple component. T3: It is the type of the third tuple component. Parameters: item1: It is the value of the first tuple component. item2: It is the value of the second tuple component. item3: It is the value of the third tuple component. Return Type: This method returns 3-tuple whose value is item1, item2, and item3. Example: CSharp // C# program to create 3-tuple // using create method using System; public class GFG { // Main method static public void Main() { // Creating tuple with three // elements using Create method var My_Tuple = Tuple.Create("Geeks", 20, 'f'); Console.WriteLine("Element 1: " + My_Tuple.Item1); Console.WriteLine("Element 2: " + My_Tuple.Item2); Console.WriteLine("Element 3: " + My_Tuple.Item3); } } Output: Element 1: Geeks Element 2: 20 Element 3: f References: https://learn.microsoft.com/en-us/dotnet/api/system.tuple-3.-ctor?view=netframework-4.8 https://learn.microsoft.com/en-us/dotnet/api/system.tuple.create?view=netframework-4.8#System_Tuple_Create__3___0___1___2_ Comment More infoAdvertise with us Next Article How to create 3-ValueTuple in C#? A ankita_saini Follow Improve Article Tags : C# CSharp-Tuple Similar Reads How to create 2-tuple or pair tuple in C#? In C#, a 2-tuple is a tuple that contains two elements and it is also known as pair. You can create a 2-tuple using two different ways: Using Tuple<T1,T2>(T1, T2) Constructor Using the Create method Using Tuple<T1,T2>(T1, T2) Constructor You can create 2-tuple using Tuple<T1, T2>(T 2 min read How to create 1-Tuple or Singleton Tuple in C#? In C#, a singleton tuple is a tuple that contains only one element and singleton tuple is also known as 1-tuple. You can create a 1-tuple using two different ways: Using Tuple<T1>(T1) Constructor Using the Create method Using Tuple<T1>(T1) Constructor You can create a singleton tuple usi 2 min read How to create 7-Tuple or Septuple in C#? In C#, a 7-tuple is a tuple that contains seven elements and it is also known as Septuple. You can create a 7-tuple using two different ways: Using Tuple<T1,T2,T3,T4,T5,T6,T7>(T1, T2, T3, T4, T5, T6, T7) Constructor Using the Create method Using Tuple<T1,T2,T3,T4,T5,T6,T7>(T1, T2, T3, T4 4 min read How to create 3-ValueTuple in C#? In C#, a triple or 3 value tuple is a value type tuple which holds three elements in it. You can create a triple value tuple using two different ways: Using ValueTuple <T1, T2, T3>(T1, T2, T3) Constructor Using Create <T1, T2, T3>(T1, T2, T3) Method Using ValueTuple <T1, T2, T3>(T1 3 min read How to create 4-Tuple or quadruple in C#? In C#, a 4-tuple is a tuple that contains four elements and it is also known as quadruple. You can create a 4-tuple using two different ways: Using Tuple<T1,T2,T3,T4>(T1, T2, T3, T4) Constructor Using the Create method Using Tuple<T1,T2,T3,T4>(T1, T2, T3, T4) Constructor You can create 4 3 min read How to create 5-Tuple or quintuple in C#? In C#, a 5-tuple is a tuple that contains five elements and it is also known as quintuple. You can create a 5-tuple using two different ways: Using Tuple<T1,T2,T3,T4,T5>(T1, T2, T3, T4, T5) Constructor Using the Create method Using Tuple<T1,T2,T3,T4,T5>(T1, T2, T3, T4, T5) Constructor Yo 3 min read Like