Hi Group!
I encounter a strange behaviour of String.LastInde xOf when specifying
start and count values.
The following works:
string tempString = orgString.SubSt ring(0, mycount);
int index = tempString.Last IndexOf(mychar) ;
The following causes an ArgumentOutOfRa ngeException:
int index = orgString.LastI ndexOf(mychar, 0, mycount);
Values at the time of execution:
mychar: '<'
orgString.Lengt h: 6347
mycount: 663
Is this a known issue (Framework version 2.0)?
cheers
Mathias
I encounter a strange behaviour of String.LastInde xOf when specifying
start and count values.
The following works:
string tempString = orgString.SubSt ring(0, mycount);
int index = tempString.Last IndexOf(mychar) ;
The following causes an ArgumentOutOfRa ngeException:
int index = orgString.LastI ndexOf(mychar, 0, mycount);
Values at the time of execution:
mychar: '<'
orgString.Lengt h: 6347
mycount: 663
Is this a known issue (Framework version 2.0)?
cheers
Mathias
Comment