Last post Dec 21, 2010 01:18 PM by Yousef_Jadallah
Dec 21, 2010 12:29 PM|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 01:18 PM|Yousef_Jadallah|LINK
You need to implement the IComparable method , here you can find an example :