arity

Why would this code complain about "the arity of the generic type definition"?

I've got a generic type: class DictionaryComparer<TKey, TValue> : IEqualityComparer<IDictionary<TKey, TValue>> And a factory method that will (should) create an instance of this class for a given dictionary type. private static IEqualityComparer<T> CreateDictionaryComparer<T>() { Type def = typeof(DictionaryComparer<,...