Struct KVPair<TKey, TValue>
A key-value pair.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct KVPair<TKey, TValue> where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged
Type Parameters
Name | Description |
---|---|
TKey | The type of the keys. |
TValue | The type of the values. |
Remarks
Used for enumerators.
Properties
Name | Description |
---|---|
Key | The key. |
Null | An invalid KeyValue. |
Value | Value of key/value pair. |
Methods
Name | Description |
---|---|
GetKeyValue(out TKey, out TValue) | Gets the key and the value. |