Dictionary<int, string>
public void YourMethod<TKey, TValue>(Dictionary<TKey, TValue> dict){ // ... }
dict
dict.GetType().GetGenericTypeDefinition() == typeof(Dictionary<,>)
GetGenericTypeDefinition()
typeof(Dictionary<,>)