Click or drag to resize
ReadOnlyDictionaryTKey, TValueTryGetValue Method
获取与指定的键相关联的值。

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public bool TryGetValue(
	TKey key,
	out TValue value
)

Parameters

key
Type: TKey
要获取的值的键。
value
Type: TValue
当此方法返回值时,如果找到该键,便会返回与指定的键相关联的值;否则,则会返回 value 参数的类型默认值。该参数未经初始化即被传递。

Return Value

Type: Boolean
如果字典包含具有指定键的元素,则为 true;否则为 false。

Implements

IDictionaryTKey, TValueTryGetValue(TKey, TValue)
See Also