Is there any way to check if a KeyValuePair contains a specific Key in a Dictionary in one line?
In my code I have a Dictionary, which at first was just <string, int>. However, I needed a way for two things with the same string to be separate elements in the Dictionary, so I made the Key int and the Value a KeyValuePair<string, int>.