SortAsComparer Class

NReco.PivotData Class Library Documentation
Comparer for custom keys order defined by explicit list.
Inheritance Hierarchy

SystemObject
  NReco.PivotDataSortAsComparer

Namespace:  NReco.PivotData
Assembly:  NReco.PivotData (in NReco.PivotData.dll) Version: 1.4.1
Syntax

public class SortAsComparer : IComparer<Object>

The SortAsComparer type exposes the following members.

Constructors

  NameDescription
Public methodSortAsComparer
Initializes a new instance of the SortAsComparer class
Top
Methods

  NameDescription
Public methodCompare
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Examples

var statusDimCmp = new SortAsComparer( new [] { "New", "Open", "Closed" } );
See Also

Reference