KeyValuePair<TKey,TValue>.Deconstruct(TKey, TValue) 方法

定义

析构当前 KeyValuePair<TKey,TValue>

public:
 void Deconstruct([Runtime::InteropServices::Out] TKey % key, [Runtime::InteropServices::Out] TValue % value);
public void Deconstruct (out TKey key, out TValue value);
member this.Deconstruct : 'Key * 'Value -> unit
Public Sub Deconstruct (ByRef key As TKey, ByRef value As TValue)

参数

key
TKey

当前 KeyValuePair<TKey,TValue> 的键。

value
TValue

当前 KeyValuePair<TKey,TValue> 的值。

适用于