M
Mathias Weyel
Hi Group!
I encounter a strange behaviour of String.LastIndexOf when specifying
start and count values.
The following works:
string tempString = orgString.SubString(0, mycount);
int index = tempString.LastIndexOf(mychar);
The following causes an ArgumentOutOfRangeException:
int index = orgString.LastIndexOf(mychar, 0, mycount);
Values at the time of execution:
mychar: '<'
orgString.Length: 6347
mycount: 663
Is this a known issue (Framework version 2.0)?
cheers
Mathias
I encounter a strange behaviour of String.LastIndexOf when specifying
start and count values.
The following works:
string tempString = orgString.SubString(0, mycount);
int index = tempString.LastIndexOf(mychar);
The following causes an ArgumentOutOfRangeException:
int index = orgString.LastIndexOf(mychar, 0, mycount);
Values at the time of execution:
mychar: '<'
orgString.Length: 6347
mycount: 663
Is this a known issue (Framework version 2.0)?
cheers
Mathias