Class ImmediateKeyedCollection<T1, T2>
Hastable based collection which can be accessed by index or key. Does not support serialization.
Inheritance
Collection<T2>
KeyedCollection<T1, T2>
EnhancedKeyedCollection<T1, T2>
ImmediateKeyedCollection<T1, T2>
Inherited Members
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class ImmediateKeyedCollection<T1, T2> : EnhancedKeyedCollection<T1, T2>, IList<T2>, ICollection<T2>, IReadOnlyList<T2>, IReadOnlyCollection<T2>, IEnumerable<T2>, IList, ICollection, IEnumerable where T2 : class
Type Parameters
| Name | Description |
|---|---|
| T1 | |
| T2 |
Constructors
| Improve this Doc View SourceImmediateKeyedCollection(Func<T2, T1>, Int32)
Make a new collection whose keys are embedded in the values.
Declaration
public ImmediateKeyedCollection(Func<T2, T1> getKeyCallback, int dictionaryCreationThreshold = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<T2, T1> | getKeyCallback | Lambda expression which gets key from value. |
| Int32 | dictionaryCreationThreshold | Lookup dictionary is created when Count is this number. |
Fields
| Improve this Doc View SourcegetKeyCallback
Declaration
protected readonly Func<T2, T1> getKeyCallback
Field Value
| Type | Description |
|---|---|
| Func<T2, T1> |
Methods
| Improve this Doc View SourceGetKeyForItem(T2)
Declaration
protected override T1 GetKeyForItem(T2 item)
Parameters
| Type | Name | Description |
|---|---|---|
| T2 | item |
Returns
| Type | Description |
|---|---|
| T1 |
Overrides
System.Collections.ObjectModel.KeyedCollection<T1, T2>.GetKeyForItem(T2)