-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Threading_ConcurrentLazyDictionary_2
Andrew Koryavchenko edited this page Jun 17, 2018
·
15 revisions
Dictionary with lazy values initialization.
System.Object
CodeJam.Threading.ConcurrentLazyDictionary(TKey, TValue)
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public class ConcurrentLazyDictionary<TKey, TValue> : ILazyDictionary<TKey, TValue>,
IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>,
IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
VB
Public Class ConcurrentLazyDictionary(Of TKey, TValue)
Implements ILazyDictionary(Of TKey, TValue), IReadOnlyDictionary(Of TKey, TValue),
IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)), IEnumerable(Of KeyValuePair(Of TKey, TValue)),
IEnumerable
F#
type ConcurrentLazyDictionary<'TKey, 'TValue> =
class
interface ILazyDictionary<'TKey, 'TValue>
interface IReadOnlyDictionary<'TKey, 'TValue>
interface IReadOnlyCollection<KeyValuePair<'TKey, 'TValue>>
interface IEnumerable<KeyValuePair<'TKey, 'TValue>>
interface IEnumerable
end
- TKey
- [Missing documentation for "T:CodeJam.Threading.ConcurrentLazyDictionary
2"\]</dd><dt>TValue</dt><dd>\[Missing <typeparam name="TValue"/> documentation for "T:CodeJam.Threading.ConcurrentLazyDictionary
2"]
Name | Description | |
---|---|---|
ConcurrentLazyDictionary(TKey, TValue)(Func(TKey, TValue)) | Initialize instance. | |
ConcurrentLazyDictionary(TKey, TValue)(Func(TKey, TValue), IEqualityComparer(TKey)) | Initialize instance. |
Name | Description | |
---|---|---|
Item | Gets the element that has the specified key in the read-only dictionary. | |
Keys | Gets an enumerable collection that contains the keys in the read-only dictionary. | |
Values | Gets an enumerable collection that contains the values in the read-only dictionary. |
Name | Description | |
---|---|---|
Clear | Clears all created values | |
ContainsKey | Determines whether the read-only dictionary contains an element that has the specified key. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue | Gets the value that is associated with the specified key. |
Back to Top
Thread safe.