Skip to content

QuaternaryList.ItemMatchesSecondaryIndex(string, T, TIndexKey) method

Defined in

Type: QuaternaryList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

public bool ItemMatchesSecondaryIndex<TIndexKey>(string indexName, T item, TIndexKey key) where TIndexKey : notnull

View source (opens in a new tab)

Summary: Determines whether the specified item matches the given key in the specified secondary index.

Type parameters

NameDescription
TIndexKeyThe type of the key used in the secondary index.

Parameters

NameTypeDescription
indexNamestring (opens in a new tab)The name of the secondary index to use for matching.
itemTThe item to check.
keyTIndexKeyThe key value to match against.

Returns: bool (opens in a new tab) -- true if the item's indexed value matches the specified key; otherwise, false.