---
title: "How to use Tuple in C#"  
description: "How to use Tuple in C#"  
author: "Anonymous User"  
published: 2015-11-27  
updated: 2015-11-27  
canonical: https://www.mindstick.com/forum/33652/how-to-use-tuple-in-c-sharp  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# How to use Tuple in C#

I want to use [Tuple](https://www.mindstick.com/interview/1252/explain-about-tuple-in-visual-c) in C# Please help me.

## Replies

### Reply by Anonymous User

C# 4.0 included a new feature called Tuple. A tuple is a data structure that has a specific number and sequence of elements. \
Tuple can be used in several ways. Let’s see, how tuple can be used to return multiple values from a method.

```
using System;namespace TupleApplication{    class Mainprogram    {        static void Main(string[] args)        {            ClassTuple objTuple = new ClassTuple();            var tuple = objTuple.Operations("Aditya","Singh","Patel","7798930674");            Console.WriteLine("FirstName:{0}, MiddleName:{1}, LastName :{2}, ContactNo:{3}", tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4);            System.Threading.Thread.Sleep(2000);        }    }    class ClassTuple    {        public Tuple<string, string, string, string> Operations(string fname, string Mname, string Lname, string Contact)        {            return Tuple.Create(fname, Mname, Lname,Contact);        }    }}
```

![How to use Tuple in C#](https://www.mindstick.com/mindstickforums/287b033c-2c18-4305-b8e4-9dafa25f800f/images/a9206a7c-28b7-47f2-8729-dbdd36c3b879.png)


---

Original Source: https://www.mindstick.com/forum/33652/how-to-use-tuple-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
