There is a string

string str = "123|&|321|&|323|&|121"; 

It is necessary to divide this string character by character and write to an array.

I understand that you can create a function, etc. But you can somehow overload String.Split() The end result should be

 { 123, 321, 323, 121 } 

    1 answer 1

     str.Split(new string[] { "|&|" }, StringSplitOptions.None); 

    Docks for string array overload , russish version

    • Thank you, they helped a lot - pavel1787mego