I
illegal.prime
So I see from the documentation here:
http://msdn.microsoft.com/library/d...ollectionsArrayListClassBinarySearchTopic.asp
That the code uses the less than operator:
int myIndex=myList.BinarySearch( myObject );
if ( myIndex < 0 )
when using the BinarySearch method and in my own experience I see that
sometimes it returns other negative values (other than -1).
What is the significance of the various negative values? I'm used to
methods that return indices to return only -1 on failure - do these
other negative values tell you how many times it had to divide and
conquer to reach the conclusion that the value doesn't occur in the
ArrayList?
Thanks,
Novice
http://msdn.microsoft.com/library/d...ollectionsArrayListClassBinarySearchTopic.asp
That the code uses the less than operator:
int myIndex=myList.BinarySearch( myObject );
if ( myIndex < 0 )
when using the BinarySearch method and in my own experience I see that
sometimes it returns other negative values (other than -1).
What is the significance of the various negative values? I'm used to
methods that return indices to return only -1 on failure - do these
other negative values tell you how many times it had to divide and
conquer to reach the conclusion that the value doesn't occur in the
ArrayList?
Thanks,
Novice