Last post Dec 21, 2010 08:18 AM by Yousef_Jadallah
Dec 21, 2010 07:29 AM|ankitbhadana85|LINK
Hi i have to check an if condition based on the value of a binary search operation ona arraylist. Please check the code below:
int val = ConvertDT.BinarySearch(currentdate); // Here ConvertDT is of type ArrayList and currentdate is of type string.
In this i am getting an error of type "At least one object must implement IComparable"
Dec 21, 2010 08:18 AM|Yousef_Jadallah|LINK
You need to implement the IComparable method , here you can find an example :