My starting point is a string separated by commas, containing a variable number of integers e.g.:
System::String^ tags=gcnew String("1,3,5,9");
Now I would like - with the least amount of steps possible - convert this string into a Integer list:
List<System::Int32>^ taglist= gcnew List<System::Int32>();//to contain 1,3,5,9
Additionally, after manipulating the list, I need to export it back to a string at the end of the day. I saw the question being asked for C# here but not for C++ which will be slightly different.
I tried directly initialize using the string, but that failed. I also tried .Split but that produces strings. I also dont want to do any complicated streamreader stuff. The answer in the link must have an equivalent for C++/cli.