Open smj389 opened 1 year ago
Please excuse the formatting.
@smj389 use triple backticks for better formatting. Add cs
after them for colorization.
@smj389 Thank you for the suggestion. It looks good, although I'm not too familiar with WinRT interop.
@sotteson1 I believe you contributed the WinRTCustomMarshaler
type. Do you have any insights into this suggestion?
At the moment, methods with WinRT types are generated like this:
Where WinRTCustomMarashaler is a piece of generated code that uses reflection and MethodInfo.invoke.
Surely, it would be more efficient to do something like this:
The main difference is that for each type there is a FromAbi static method that can be called. Given that the type is known at code generation time surely that is more efficient.