Skip to content

T_CodeJam_Collections_LazyDictionary_2

andrewvk edited this page Mar 30, 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#

[PublicAPIAttribute]
public class LazyDictionary<TKey, TValue> : ILazyDictionary<TKey, TValue>

VB

<PublicAPIAttribute>
Public Class LazyDictionary(Of TKey, TValue)
	Implements ILazyDictionary(Of TKey, TValue)

F#

[<PublicAPIAttribute>]
type LazyDictionary<'TKey, 'TValue> =  
    class
        interface ILazyDictionary<'TKey, 'TValue>
    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)) Initialize instance.
Public method LazyDictionary(TKey, TValue)(Func(TKey, TValue), IEqualityComparer(TKey)) Initialize 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 creates 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

See Also

Reference

CodeJam.Collections Namespace

Clone this wiki locally