---
title: "What are tuples in .Net?"  
description: "What are tuples in .Net?"  
author: "Sunita  Singh"  
published: 2017-11-14  
canonical: https://answers.mindstick.com/qa/30510/what-are-tuples-in-dot-net  
category: "programming"  
tags: ["asp.net", ".net programming"]  
reading_time: 1 minute  

---

# What are tuples in .Net?

What are [tuples](https://www.mindstick.com/forum/34509/difference-between-lists-and-tuples) in .Net?

## Answers

### Answer by Arti Mishra

**"Tuples "**A tuple is a **data structure** that provides an easy way to represent any type of data. In .NET & C# programming language Tuples help us to keep your logic clear and very simple.\
**For Example** Here we define a program that uses the 3 items truple- using System; class TrupleProgram { static void Main() { // Create three-items tuple. Tuple<int, string, bool> tuple = new Tuple<int, string, bool>(100, “Book", true); \
// Access tuple values or items. if (tuple.Item1 == 100) { Console.WriteLine(tuple.Item1); } if (tuple.Item2 == "Book") { Console.WriteLine(tuple.Item2); } if (tuple.Item3) { Console.WriteLine(tuple.Item3); } } } \


---

Original Source: https://answers.mindstick.com/qa/30510/what-are-tuples-in-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
