Hi all.
this is in .net 2.0, c#
//code
string d = "dddd????";
int i = d.IndexOf('?', 0, 3); // return -1, why???
// end
Thanks
Markus Kling - 21 Jun 2006 16:25 GMT
Your code only searches for a '?' within the substring (0, 3) and there is
no '?'. The answer is correctly -1 :)
http://msdn2.microsoft.com/de-de/library/ms131434.aspx
Markus
> Hi all.
> this is in .net 2.0, c#
[quoted text clipped - 5 lines]
>
> Thanks