Customized BinarySearch In ArrayLists with IComparer


Server Intellect Web Hosting Solutions


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

Also See:

Statics & Thread Safety: Part I
code better - use string.format
Review: Microsoft Visual C# .NET 2003 Kick Start
Adding Validation Controls to the DataList’s Editing Interface
Deploying ASP.NET applications
Xml-script tutorial Part 3
Spice Up Your UI
Creating a Customized Sorting User Interface
Creating Your Own RSS Items Object
Custom Paging for TableAdapters without using SPs



Copyright© 2005 ASP Intellect | All Rights Reserved

ASP.NET Tutorials
AspNet Tutorials ASP.NET 2.0 Code Examples, Snippets and Tutorials

ASP.NET Tutorials C++ Tutorials C# Tutorials Visual Studio.NET Tutorials
.NET Framework Tutorials Mobility Tutorials Office Tutorials Visual Basic.NET Tutorials