-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Collections_ILazyDictionary_2
Andrew Koryavchenko edited this page Jun 17, 2018
·
14 revisions
Dictionary with lazy values initialization.
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public interface ILazyDictionary<TKey, TValue> : IReadOnlyDictionary<TKey, TValue>,
IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>,
IEnumerable
VB
Public Interface ILazyDictionary(Of TKey, TValue)
Inherits IReadOnlyDictionary(Of TKey, TValue), IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)),
IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable
F#
type ILazyDictionary<'TKey, 'TValue> =
interface
interface IReadOnlyDictionary<'TKey, 'TValue>
interface IReadOnlyCollection<KeyValuePair<'TKey, 'TValue>>
interface IEnumerable<KeyValuePair<'TKey, 'TValue>>
interface IEnumerable
end
- TKey
- Type of key
- TValue
- Type of value
Name | Description | |
---|---|---|
Count | Gets the number of elements in the collection. (Inherited from IReadOnlyCollection(KeyValuePair(TKey, TValue)).) | |
Item | Gets the element that has the specified key in the read-only dictionary. (Inherited from IReadOnlyDictionary(TKey, TValue).) | |
Keys | Gets an enumerable collection that contains the keys in the read-only dictionary. (Inherited from IReadOnlyDictionary(TKey, TValue).) | |
Values | Gets an enumerable collection that contains the values in the read-only dictionary. (Inherited from IReadOnlyDictionary(TKey, TValue).) |
Name | Description | |
---|---|---|
Clear | Clears all created values | |
ContainsKey | Determines whether the read-only dictionary contains an element that has the specified key. (Inherited from IReadOnlyDictionary(TKey, TValue).) | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable(KeyValuePair(TKey, TValue)).) | |
TryGetValue | Gets the value that is associated with the specified key. (Inherited from IReadOnlyDictionary(TKey, TValue).) |
Back to Top