EnumConverter.Comparer 屬性

定義

取得可以用於排序列舉型別之值的 IComparer

protected:
 virtual property System::Collections::IComparer ^ Comparer { System::Collections::IComparer ^ get(); };
protected virtual System.Collections.IComparer Comparer { get; }
member this.Comparer : System.Collections.IComparer
Protected Overridable ReadOnly Property Comparer As IComparer

屬性值

IComparer 用於排序列舉型別的值。

備註

根據預設,列舉值會依出現在檔案中的順序排序。

給繼承者的注意事項

如果您想要將值排序成不同的順序,請覆寫這個屬性。

適用於