Generic base class wraps nested generic class to reduce type argument specification: Is there a name for this pattern?
问题 Ok question title is far from being self-explanatory. I see myself doing this often: From this answer: public static class Equality<T> { public static IEqualityComparer<T> CreateComparer<K>(Func<T, K> keySelector) { return new KeyEqualityComparer<K>(keySelector); } class KeyEqualityComparer<K> : IEqualityComparer<T> { readonly Func<T, K> keySelector; public KeyEqualityComparer(Func<T, K> keySelector) { this.keySelector = keySelector; } public bool Equals(T x, T y) { ---- } public int