Thus .Net creates class names. Initial declaration
Dictionary<K, V>
the type name will be converted to Dictionary'2 , where '2 means two common parameters:
// Dictionary`2 - two generic parameters Console.WriteLine(typeof(Dictionary<int, string>).Name); `1 - one generic parameter Console.WriteLine(typeof(List<int>).Name);
Please compare:
// IDictionary`2 - two generic parameters Console.WriteLine(typeof(IDictionary<int, string>).Name);
Dmitry Bychenko
source share