IDictionary does not inherit from IReadOnlyDictionary #55487
Labels
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
needs-area-label
Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically
Status: Resolved
Is there an existing issue for this?
Describe the bug
IDictionary is declared as
The extension GetValueOrDefault() does not work on IDictionary because it is defined on IReadOnlyDictionary
Expected Behavior
IDictionary should implement interface IReadOnlyDictionary as well
Steps To Reproduce
Declare local variable of type IDictionary
Invoke var.GetValueOrDefault()
It cannot be resolved
Exceptions (if any)
No response
.NET Version
8.0.4
Anything else?
No response
The text was updated successfully, but these errors were encountered: