FrozenDictionary<TKey,TValue>.CopyTo 方法

定义

重载

CopyTo(Span<KeyValuePair<TKey,TValue>>)

将字典的元素复制到 类型的 KeyValuePair<TKey,TValue>范围。

CopyTo(KeyValuePair<TKey,TValue>[], Int32)

从指定的 destinationIndex开始,将字典的元素复制到 类型的KeyValuePair<TKey,TValue>数组。

CopyTo(Span<KeyValuePair<TKey,TValue>>)

Source:
FrozenDictionary.cs
Source:
FrozenDictionary.cs

将字典的元素复制到 类型的 KeyValuePair<TKey,TValue>范围。

public:
 void CopyTo(Span<System::Collections::Generic::KeyValuePair<TKey, TValue>> destination);
public void CopyTo (Span<System.Collections.Generic.KeyValuePair<TKey,TValue>> destination);
member this.CopyTo : Span<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> unit
Public Sub CopyTo (destination As Span(Of KeyValuePair(Of TKey, TValue)))

参数

destination
Span<KeyValuePair<TKey,TValue>>

从字典复制的元素的目标范围。

适用于

CopyTo(KeyValuePair<TKey,TValue>[], Int32)

Source:
FrozenDictionary.cs
Source:
FrozenDictionary.cs

从指定的 destinationIndex开始,将字典的元素复制到 类型的KeyValuePair<TKey,TValue>数组。

public:
 virtual void CopyTo(cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ destination, int destinationIndex);
public void CopyTo (System.Collections.Generic.KeyValuePair<TKey,TValue>[] destination, int destinationIndex);
abstract member CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
override this.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
Public Sub CopyTo (destination As KeyValuePair(Of TKey, TValue)(), destinationIndex As Integer)

参数

destination
KeyValuePair<TKey,TValue>[]

数组,它是从字典复制的元素的目标。

destinationIndex
Int32

destination 中从零开始的索引,从此处开始复制。

实现

适用于