Skip to content

P_CodeJam_Collections_LazyDictionary_2_Item

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

LazyDictionary(TKey, TValue).Item Property

Gets the element that has the specified key in the read-only dictionary.

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

Syntax

C#

public TValue this[
	TKey key
] { get; }

VB

Public ReadOnly Default Property Item ( 
	key As TKey
) As TValue
	Get

F#

abstract Item : 'TValue with get
override Item : 'TValue with get

Parameters

 

key
Type: TKey
The key to locate.

Return Value

Type: TValue
The element that has the specified key in the read-only dictionary.

Implements

IReadOnlyDictionary(TKey, TValue).Item(TKey)

Exceptions

 

Exception Condition
ArgumentNullException key is null.
KeyNotFoundException The property is retrieved and key is not found.

See Also

Reference

LazyDictionary(TKey, TValue) Class
CodeJam.Collections Namespace

Clone this wiki locally