NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Comparers

IComparer

The IComparer interface supports a method that compares two objects. It is used in conjunction with the Sort and BinarySearch methods on the Array and List classes

public interface IComparer
{
   //Methods 
 int Compare(object x, object y);
}

Comparer

Comparer is a default implementation of the IComparer interface that compares two Objects that implement the ICompareable interface

public class Comparer: IComparer
{
   //Fields 
 public static readonly Comparer Default;
   //Methods 
 public virtual int Compare(object a, object b);
}