Find Nth occurance of a character in a string

Posted by jozi on Stack Overflow See other posts from Stack Overflow or by jozi
Published on 2010-04-03T15:44:51Z Indexed on 2010/04/03 16:03 UTC
Read the original article Hit count: 163

Filed under:

I need help with creating a C# method that returns the index of the Nth occurance of a character in a string.

For instance, the 3rd occurance of the character 't' in the string "dtststx" is 5.

© Stack Overflow or respective owner

Related posts about c#