I need to expose some unmanaged data using CLIWrapper.
Let’s say I have a vector, but there is no null-characters in the middle of the vector (for sure). What would be the best way to do this type of assigment/marshalling?
And just in case…. How whould the same operation looks like if I do assigning from vector to cli::array?
You can directly use the String class constructor. Like this: