Skip to content

T_CodeJam_Collections_LazyDictionary_2

andrewvk edited this page Mar 24, 2016 · 16 revisions

LazyDictionary(TKey, TValue) Class

[This is preliminary documentation and is subject to change.]

Dictionary with lazy values initialization.

Inheritance Hierarchy

System.Object
  CodeJam.Collections.LazyDictionary(TKey, TValue)
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public class LazyDictionary<TKey, TValue>

VB

Public Class LazyDictionary(Of TKey, TValue)

F#

type LazyDictionary<'TKey, 'TValue> =  class end

Type Parameters

 

TKey
TValue
  The LazyDictionary(TKey, TValue) type exposes the following members.

Constructors

 

Name Description
Public method LazyDictionary(TKey, TValue)(Func(TKey, TValue)) Initiaize instance.
Public method LazyDictionary(TKey, TValue)(Func(TKey, TValue), IEqualityComparer(TKey)) Initiaize instance.
  Back to Top

Methods

 

Name Description
Public method Clear Clears all created values
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Get Returns existing value associated to a key, or create new.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Remarks

Thread safe.

See Also

Reference

CodeJam.Collections Namespace

Clone this wiki locally