What is the difference between Tuple, Dictionary and List in C#?

Viewed 23254

The differences between Lists and Dictionaries are already shown here.

However, I was trying to use Tuple in an application earlier. I want to differentiate between Tuples, Dictionaries, and Lists.

 Dictionary<int, string> dic = new Dictionary<int, string>();
 Tuple<int, string> tuple = new Tuple<int, string>();
 List<int> list = new List<int>();

What is the difference between these three?

4 Answers
Related