asp.net.ph

IComparer Interface

System.Collections Namespace


Exposes a method that compares two objects.

IComparer Interface Members

Collapse   Methods

Visibility Name Parameters Return Type
public Compare ( Object x , Object y ) Int32

Remarks

The IComparer interface is used in conjunction with the Array.Sort and Array.BinarySearch methods. It provides a way to customize the sort order of a collection.

The default implementation of this interface is the Comparer class.

Comparison procedures use the Thread.CurrentCulture of the current thread unless otherwise specified. String comparisons might have different results depending on the culture.

For more information on culture-specific comparisons, see the System.Globalization namespace and Developing World-Ready Applications.

See Also

CompareInfo Class   CultureInfo Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph