文档

Unity Engine

Unity Engine

GetKeyValue(out TKey, out TValue)

Gets the key and the value.
阅读时间1 分钟最后更新于 1 个月前

Definition

GetKeyValue(T, T)

public bool GetKeyValue(out TKey key, out TValue value)

Parameters

key

T
Outputs the key. If this KeyValue is Null, outputs the default of TKey.

value

T
Outputs the value. If this KeyValue is Null, outputs the default of TValue.

Returns

Type

Description

boolTrue if the key-value pair is valid.