Thursday, January 2, 2014

What does this mean?

Those are generic data types.


For example IDictionary<Tkey, TValue>




means you can replace those with any type.


IDictionary<int, string>


IDictionary<int, int>


IDictionary<string, string>


There is no difference in calling IDictionary<K, V>


C# has used the naming convention of TKey as in C++ template to represent generics rather than just using single characters.


Hope that helps


No comments:

Post a Comment