How to pass lists from a C# application to a C++ WinRT component?


  • I have a C++ WinRT component and I would like to enable passing lists of objects from a C# component. For now I basically call the same method multiple times to copy list elements one by one. I could maybe pass an array of structs as an unsafe byte buffer and cast it back to structs, but that seems a bit too low level to me. Is there a clean way to do it? Right now I don't really care much what objects I use - the could be structs or ref classes defined in the C++ WinRT component or anything else that could work.

    Filip Skakun

    Monday, June 11, 2012 3:33 AM


All replies