C# – Using a dictionary with tuples
You can use dictionaries with tuples as the keys or values. I’ll show examples below. Dictionary with tuple as key Tuples have two or more fields, so using a tuple as the key is a simple way to have compound keys in a dictionary. Here’s an example of creating a dictionary with a named tuple … Read more