tristanlabelle / swift-winrt

A Swift bindings generator for WinRT APIs
MIT License
15 stars 1 forks source link

Support boxing arrays #90

Open tristanlabelle opened 3 months ago

tristanlabelle commented 3 months ago

It should be possible to box arrays of structs/enums/delegates to an IInspectable that implements IReferenceArray<T> .

We don't need to support projection to [T]? since:

You can't implement the IReferenceArray interface or include it in a signature. IReferenceArray is mainly an internal implementation detail of how the Windows Runtime implements boxing and nullable values. docs