Enhanced C#
Language of your choice: library documentation
Loyc.Collections.IDictionaryAndReadOnly< K, V > Interface Template Reference

This interface is meant to be implemented by read-only dictionary classes that originally implemented IDictionary<K, V> and now want to add its read-only version, IReadOnlyDictionary<K, V>. More...


Source file:
Inheritance diagram for Loyc.Collections.IDictionaryAndReadOnly< K, V >:
Loyc.Collections.IDictionaryEx< K, V > Loyc.Collections.IDictionaryImpl< K, V > Loyc.Collections.BDictionary< K, V > Loyc.Collections.MMap< K, V >

Remarks

This interface is meant to be implemented by read-only dictionary classes that originally implemented IDictionary<K, V> and now want to add its read-only version, IReadOnlyDictionary<K, V>.

This interface is used in C# for disambiguation (as explained in the description of IListImpl<T>.) Variables should not have this type (except in disambiguation methods, which immediately cast the variable to another type).