Skip to content

M_CodeJam_Collections_LazyDictionary_2_ContainsKey

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

LazyDictionary(TKey, TValue).ContainsKey Method

Determines whether the read-only dictionary contains an element that has the specified key.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public bool ContainsKey(
	TKey key
)

VB

Public Function ContainsKey ( 
	key As TKey
) As Boolean

F#

abstract ContainsKey : 
        key : 'TKey -> bool 
override ContainsKey : 
        key : 'TKey -> bool 

Parameters

 

key
Type: TKey
The key to locate.

Return Value

Type: Boolean
true if the read-only dictionary contains an element that has the specified key; otherwise, false.

Implements

IReadOnlyDictionary(TKey, TValue).ContainsKey(TKey)

Exceptions

 

Exception Condition
ArgumentNullException key is null.

See Also

Reference

LazyDictionary(TKey, TValue) Class
CodeJam.Collections Namespace

Clone this wiki locally