I think the function IndexOf from class string only can return the first ocurrence of a char in a string.
For example
string foo="blahblahblah";
int num=foo.IndexOf("l") would make num= 1.
But I wonder if there's a similar function that would work this way:
string foo="blahblahblah"
int indexNumber=2;
int num=foo.aFunction("l",indexNumber) would make num=5.
indexNumber=3;
num=foo.aFunction("l",indexNumber) would make num= 9.
And so on with indexNumber indicating that it shouldn't return the first ocurrence, but the one that it's indicated into it.
Can you guide me about that function or a code to achieve this?