CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Dictionary fails to cast to IReadOnlyDictionary

Open FrayxRulez opened this issue 1 year ago • 0 comments

Describe the bug CsWinRT throws when passing a Dictionary<TKey, TValue> to a WinRT method that expects a IReadOnlyDictionary<TKey, TValue> as parameter. Wrapping the dictionary in its own non-generic type works around the issue.

Version Info 2.1.1

FrayxRulez avatar Aug 26 '24 16:08 FrayxRulez