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>>)

來源:
FrozenDictionary.cs
來源:
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)

來源:
FrozenDictionary.cs
來源:
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 中以零起始的索引,即開始複製的位置。

實作

適用於