Why does List
implement IReadOnlyList
in .NET 4.5?
List
isn\'t read only...
Interfaces only describes functionality which will be implemented. It does not describe functionality which will not be implemented. IReadOnlyList is therefor an incorrect interface name, as it cannot dictate that write functionality will not be written.
The methods/functions of describe that you can read the contents of the list. The interface should have been IReadableList instead of IReadOnlyList.