[]
Determines whether an index with the specified key selector exists in the collection.
public bool Contains(LambdaExpression keySelector)
| Type | Name | Description |
|---|---|---|
| LambdaExpression | keySelector | Key selector expression of an index, see KeySelector. |
| Type | Description |
|---|---|
| bool | true if an index with the specified key selector is found in the collection; otherwise, false. |
Determines whether an index 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 an index, see KeySelector. |
| Type | Description |
|---|---|
| bool | true if an index with the specified key selector is found in the collection; otherwise, false. |
| Name | Description |
|---|---|
| TKey | The type of the index key. |