I've got a managed C++ method that takes as a parameter a list of String^
the method needs to populate an unmanaged structure with pointers to the memory in the String^
extracting the WCHAR* is simple enough with PtrToStringChars
however I dont know the number of pin_ptr's to allocate at design time
I'd like to add the pinned ptr to a list, with something similar to the below List< pin_ptr< const wchar_t>>
doing this yields error C3225: generic type argument for 'T' cannot be 'cli::pin_ptr', it must be a value type or a handle to a reference
is there a way to do this? in managed C++