Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


KVPair<TKey, TValue>

A key-value pair.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public struct KVPair<TKey, TValue> where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged

Remarks

Used for enumerators.

Properties

Property

Description

KeyThe key.
ValueValue of key/value pair.

Static Properties

Property

Description

NullAn invalid KeyValue.

Methods

Method

Description

GetKeyValueGets the key and the value.