共用方式為


PriorityQueue<TElement,TPriority>.Comparer 屬性

定義

取得所使用的 PriorityQueue<TElement,TPriority>優先順序比較子。

public:
 property System::Collections::Generic::IComparer<TPriority> ^ Comparer { System::Collections::Generic::IComparer<TPriority> ^ get(); };
public System.Collections.Generic.IComparer<TPriority> Comparer { get; }
member this.Comparer : System.Collections.Generic.IComparer<'Priority>
Public ReadOnly Property Comparer As IComparer(Of TPriority)

屬性值

IComparer<TPriority>

比較子,決定佇列中專案的優先順序。

適用於