Comparer Property
Collapse the table of content
Expand the table of content

EnumConverter.Comparer Property

Gets an IComparer that can be used to sort the values of the enumeration.

[Visual Basic]
Protected Overridable ReadOnly Property Comparer As IComparer
[C#]
protected virtual IComparer Comparer {get;}
[C++]
protected: __property virtual IComparer* get_Comparer();
[JScript]
protected function get Comparer() : IComparer;

Property Value

An IComparer for sorting the enumeration values.

Remarks

By default, the enumeration values are sorted in the order they appear in the file.

Notes to Inheritors:  If you want to sort the values into a different order, override this property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

EnumConverter Class | EnumConverter Members | System.ComponentModel Namespace

Show:
© 2016 Microsoft