I have a dictionary that takes in a tuple function and an int
Dictionary<Tuple<string,string>, int> fullNames = new Dictionary<Tuple<string,string>, int>();
Where the Tuple class is defined as
public class Tuple<T, T2>
{
public Tuple(T first, T2 second)
{
First = first;
Second = second;
}
public T First { get; set; }
public T2 Second { get; set; }
}
I want to use the Containskey function as such
if (fullNames.ContainsKey(Tuple<"firstname","lastname">))
But I am getting an overload error. Any suggestions?