CsWinRT
CsWinRT copied to clipboard
Perf: Minimize Heap Allocations: use disposable ref structs
Minimize heap allocations for marshalers by eliminating explicit try/finally and adopting ref structs with non-IDisposable Dispose and 'using var ...' pattern, as well as passing marshalers to FromAbi by ref so they can be conditionally disposed.