Skip to content

Is IReadOnlyDictionary supported as DictionarySource? #340

Description

@dombrovsky

Is your feature request related to a problem? Please describe.
If arguments for formatting are coming as IReadOnlyDictionary (not upcastable to IDictionary), there is no built in Source that can handle it.
,
Describe the solution you'd like
Should be a straightforward piece to add IReadOnlyDictionary support to DictionarySource, same way as it handles IDictionary.

Describe alternatives you've considered
Workaround is to convert IReadOnlyDictionary to IDictionary, but that would cause additional allocations.
There is always a possibility to implement custom Source on consumer side.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions