Basically I need to do String.IndexOf() and I need to get array of indexes from the source string.
Is there easy way to get array of indexes?
Before asking t
You would have to loop, I suspect:
int start = 0; string s = "abcdeafghaji"; int index; while ((index = s.IndexOf('a', start)) >= 0) { Console.WriteLine(index); start = index + 1; }