Table of Contents

Class KeyValue<TKey, TValue>

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Represents a key-value pair used for the implementation of FixedKeyDictionary<TKey, TValue>.

[Version(4, 5, 0)]
[Serializable]
public class KeyValue<TKey, TValue>

Type Parameters

TKey

The type of the key.

TValue

The type of the value.

Inheritance
KeyValue<TKey, TValue>
Inherited Members
Extension Methods

Remarks

We would almost be able to get away with standard KeyValuePair<TKey, TValue> but that is not serializable by Unity.

Constructors

KeyValue(TKey, TValue)

Initializes a new instance with the given key and value.

Fields

key

The key of this pair.

value

The value of this pair.

Methods

Deconstruct(out TKey, out TValue)

Deconstructs this pair into its key and value components.