[]
Determines whether a subindex with the specified key selector exists in the collection.
public bool Contains(LambdaExpression keySelector)
Type | Name | Description |
---|---|---|
LambdaExpression | keySelector | Key selector expression of a subindex, see KeySelector. |
Type | Description |
---|---|
bool | true if a subindex with the specified key selector is found in the collection; otherwise, false. |
Determines whether a subindex with the specified key selector exists in the collection.
public bool Contains<TKey>(Expression<Func<T, TKey>> keySelector)
Type | Name | Description |
---|---|---|
Expression<Func<T, TKey>> | keySelector | Key selector expression of a subindex, see KeySelector. |
Type | Description |
---|---|
bool | true if a subindex with the specified key selector is found in the collection; otherwise, false. |
Name | Description |
---|---|
TKey | The type of the subindex key. |