Skip to content

M_CodeJam_Collections_LazyDictionary_2__ctor_1

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

LazyDictionary(TKey, TValue) Constructor (Func(TKey, TValue), IEqualityComparer(TKey))

Initialize instance.

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

Syntax

C#

public LazyDictionary(
	Func<TKey, TValue> valueFactory,
	IEqualityComparer<TKey> comparer
)

VB

Public Sub New ( 
	valueFactory As Func(Of TKey, TValue),
	comparer As IEqualityComparer(Of TKey)
)

F#

new : 
        valueFactory : Func<'TKey, 'TValue> * 
        comparer : IEqualityComparer<'TKey> -> LazyDictionary

Parameters

 

valueFactory
Type: System.Func(TKey, TValue)
Function to create value on demand.
comparer
Type: System.Collections.Generic.IEqualityComparer(TKey)
Key comparer.

See Also

Reference

LazyDictionary(TKey, TValue) Class
LazyDictionary(TKey, TValue) Overload
CodeJam.Collections Namespace

Clone this wiki locally