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
protected virtual IComparer Comparer {get;}
protected: __property virtual IComparer* get_Comparer();
protected function get Comparer() : IComparer;

Property Value

An IComparer for sorting the enumeration values.


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.


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

© 2016 Microsoft