Table of Contents

Class ThreadSafeMap<TKey, TValue>

Namespace
Glitch9.Collections
public class ThreadSafeMap<TKey, TValue> where TKey : notnull

Type Parameters

TKey
TValue
Inheritance
ThreadSafeMap<TKey, TValue>
Inherited Members
Extension Methods

Constructors

ThreadSafeMap(Func<TKey, TValue>)

public ThreadSafeMap(Func<TKey, TValue> defaultFactory)

Parameters

defaultFactory Func<TKey, TValue>

Methods

Get(TKey)

public TValue Get(TKey key)

Parameters

key TKey

Returns

TValue

GetDictionary()

public Dictionary<TKey, TValue> GetDictionary()

Returns

Dictionary<TKey, TValue>