-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Description
Passing a struct array (ie Color[]) to a WinRT exported method causes an exception to be thrown within CsWinRT:
Cannot provide IReferenceArray`1 support for element type 'Windows.UI.Color'.This happens for any struct not explicitly referenced in ProvideIReferenceArray
Steps To Reproduce
- Export a WinRT method that accepts IVector<Windows.UI.Color>
- Pass a List to it, notice that everything works fine
- Pass a Color[] to it, notice that the call will fail
Expected Behavior
Passing around struct arrays causes no issues
Version Info
Happens with both stable and 2.3.0 prerelease
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels