I declared my Windows Runtime method as accepting an array by reference, but it always arrives empty

4 · Raymond Chen · Sept. 3, 2021, 9:21 p.m.
A customer was writing a Windows Runtime component that took as one of its parameters an array of strings. namespace Contoso { runtimeclass Widget { Widget(); void SetMessages(ref String[] messages); } } They tried to pass an array of strings from C#: Widget widget = new Widget(); The post I declared my Windows Runtime method as accepting an array by reference, but it always arrives empty appeared first on The Old New Thing....