You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is IReadOnlyDictionary supported as DictionarySource? #340
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
axunonb commentedon Jul 17, 2023
You're saying that this tests fails for SmartFormat v3.2.1?
[-]Support IReadOnlyDictionary is DictionarySource[/-][+]Is IReadOnlyDictionary supported as DictionarySource?[/+]