Open craigwardman opened 5 years ago
Is there any reason why the ctor which creates a SortedList from a dictionary cannot use IReadOnlyDictionary instead of IDictionary?
https://github.com/microsoft/referencesource/blob/e0bf122d0e52a42688b92bb4be2cfd66ca3c2f07/mscorlib/system/collections/sortedlist.cs#L166
I've made the code changes locally to support this, I have an open issue with the API reviewers and plan to raise a PR into corefx repo if it is passed:
https://github.com/dotnet/corefx/issues/38395
Is there any reason why the ctor which creates a SortedList from a dictionary cannot use IReadOnlyDictionary instead of IDictionary?
https://github.com/microsoft/referencesource/blob/e0bf122d0e52a42688b92bb4be2cfd66ca3c2f07/mscorlib/system/collections/sortedlist.cs#L166