Uredi

Deli z drugimi prek


FrozenSet<T>.GetAlternateLookup<TAlternate> Method

Definition

Gets an instance of a type that may be used to perform operations on a FrozenSet<T>

using a TAlternate instead of a T.

public:
generic <typename TAlternate>
 System::Collections::Frozen::FrozenSet<T>::AlternateLookup<TAlternate> GetAlternateLookup();
public System.Collections.Frozen.FrozenSet<T>.AlternateLookup<TAlternate> GetAlternateLookup<TAlternate> ();
member this.GetAlternateLookup : unit -> System.Collections.Frozen.FrozenSet<'T>.AlternateLookup<'Alternate>
Public Function GetAlternateLookup(Of TAlternate) () As FrozenSet(Of T).AlternateLookup(Of TAlternate)

Type Parameters

TAlternate

The alternate type of a item for performing lookups.

Returns

The created lookup instance.

Exceptions

This instance's comparer is not compatible with TAlternate.

Remarks

This instance must be using a comparer that implements IAlternateEqualityComparer<TAlternate,T> with

TAlternate and T. If it doesn't, an exception will be thrown.

Applies to