Class LazyDictionary<T, U>
public class LazyDictionary<T, U> : IReadOnlyDictionary<Guid, U>, IReadOnlyCollection<KeyValuePair<Guid, U>>, IEnumerable<KeyValuePair<Guid, U>>, IEnumerable
Type Parameters
TU
- Inheritance
-
LazyDictionary<T, U>
- Implements
- Inherited Members
- Extension Methods
Constructors
LazyDictionary(IReadOnlyDictionary<Guid, T>, Func<T, U>)
public LazyDictionary(IReadOnlyDictionary<Guid, T> inner, Func<T, U> wrap)
Parameters
innerIReadOnlyDictionary<Guid, T>wrapFunc<T, U>
Properties
Count
public int Count { get; }
Property Value
this[Guid]
public U this[Guid key] { get; }
Parameters
keyGuid
Property Value
- U
Keys
public IEnumerable<Guid> Keys { get; }
Property Value
Values
public IEnumerable<U> Values { get; }
Property Value
- IEnumerable<U>
Methods
ContainsKey(Guid)
public bool ContainsKey(Guid key)
Parameters
keyGuid
Returns
GetEnumerator()
public IEnumerator<KeyValuePair<Guid, U>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<Guid, U>>
TryGetValue(Guid, out U)
public bool TryGetValue(Guid key, out U value)
Parameters
keyGuidvalueU