String.IndexOf(string, int, int) bug? help!

Q

Qun

Hi all.
this is in .net 2.0, c#

//code
string d = "dddd????";
int i = d.IndexOf('?', 0, 3); // return -1, why???
// end

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top