Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Design Meeting ... » Generics » api   (RSS)

KeyValuePair vs. DictionaryEntry [Krzysztof Cwalina]

We discussed a problem with implementation of IEnumerable on Dictionary<K,V>. What type should IEnumerable.GetEnumerator().Current return? KeyValuePair<K,V> or DictionaryEntry? Same for ICollection.CopyTo. Instances of what type should be
 
Page view tracker