Struct KeyValue<TKey, TValue>
A key-value pair.
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: solution.dll
Syntax
public struct KeyValue<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. |