Show / Hide Table of Contents

Class ImmediateKeyedCollection<T1, T2>

Hastable based collection which can be accessed by index or key. Does not support serialization.

Inheritance
Object
Collection<T2>
KeyedCollection<T1, T2>
EnhancedKeyedCollection<T1, T2>
ImmediateKeyedCollection<T1, T2>
Inherited Members
EnhancedKeyedCollection<T1, T2>.TryGetValue(T1, T2)
EnhancedKeyedCollection<T1, T2>.GetValueOrDefault(T1)
EnhancedKeyedCollection<T1, T2>.SetItem(Int32, T2)
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 Source

ImmediateKeyedCollection(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 Source

getKeyCallback

Declaration
protected readonly Func<T2, T1> getKeyCallback
Field Value
Type Description
Func<T2, T1>

Methods

| Improve this Doc View Source

GetKeyForItem(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)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX