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
Description
Passing a struct array (ie Color[]) to a WinRT exported method causes an exception to be thrown within CsWinRT:
This happens for any struct not explicitly referenced in ProvideIReferenceArray
Steps To Reproduce
Expected Behavior
Passing around struct arrays causes no issues
Version Info
Happens with both stable and 2.3.0 prerelease
Additional Context
No response