Skip to content

T_CodeJam_Threading_ConcurrentLazyDictionary_2

andrewvk edited this page Mar 24, 2016 · 15 revisions

ConcurrentLazyDictionary(TKey, TValue) Class

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

Dictionary with lazy values initialization.

Inheritance Hierarchy

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

Syntax

C#

public class ConcurrentLazyDictionary<TKey, TValue> : ILazyDictionary<TKey, TValue>

VB

Public Class ConcurrentLazyDictionary(Of TKey, TValue)
	Implements ILazyDictionary(Of TKey, TValue)

F#

type ConcurrentLazyDictionary<'TKey, 'TValue> =  
    class
        interface ILazyDictionary<'TKey, 'TValue>
    end

Type Parameters

 

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

Constructors

 

Name Description
Public method ConcurrentLazyDictionary(TKey, TValue)(Func(TKey, TValue)) Initiailze instance.
Public method ConcurrentLazyDictionary(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

Remarks

Thread safe.

See Also

Reference

CodeJam.Threading Namespace

Clone this wiki locally