Customized BinarySearch In ArrayLists with IComparer
Author:
Peter A Bromberg
The .NET Framework provides many intrinsic methods that are already part of many of its types. BinarySearch is one such method that is found in the ArrayList class.
By implementing custom Comparers derived from the IComparer interface, we can construct custom search and other methods that allow us to perform more efficient operations on collections.
More Tutorials
|