Redigera

Dela via


IList<TValue>.unique Method

Definition

Removes adjacent elements that pass a specified test.

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))

Parameters

_Pred
BinaryDelegate<TValue,TValue,Boolean>

The comparer that determines whether element pairs are unique. An element that is not unique will be removed from the container.

Remarks

For more information, see list::unique (STL/CLR).

Applies to