EnumConverter::Comparer Property

 

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

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected:
property IComparer^ Comparer {
	virtual IComparer^ get();
}

Property Value

Type: System.Collections::IComparer^

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.

.NET Framework
Available since 1.1
Return to top
Show: