IList<TValue>.unique 方法

定義

移除通過指定測試的相鄰項目。

public:
 void unique(Microsoft::VisualC::StlClr::BinaryDelegate<TValue, TValue, bool> ^ _Pred);
public void unique (Microsoft.VisualC.StlClr.BinaryDelegate<TValue,TValue,bool> _Pred);
abstract member unique : Microsoft.VisualC.StlClr.BinaryDelegate<'Value, 'Value, bool> -> unit
Public Sub unique (_Pred As BinaryDelegate(Of TValue, TValue, Boolean))

參數

_Pred
BinaryDelegate<TValue,TValue,Boolean>

判斷項目組是否為唯一的比較子。 不是唯一的項目將會從容器中移除。

備註

如需詳細資訊,請參閱 list::unique (STL/CLR)

適用於