Enhanced C#
Language of your choice: library documentation
|
This interface is meant to be implemented by read-only sequence classes that originally implemented IList<T> and want to now implement IReadOnlyList<T> and IReadOnlyCollection<T>. It is recommended to implement IListAndListSource<T> instead, but the latter requires you to implement more methods. More...
This interface is meant to be implemented by read-only sequence classes that originally implemented IList<T> and want to now implement IReadOnlyList<T> and IReadOnlyCollection<T>. It is recommended to implement IListAndListSource<T> instead, but the latter requires you to implement more methods.
This interface is useful 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).