ImmutableArray<T>.CopyTo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| CopyTo(Span<T>) |
将当前ImmutableArray<T>元素复制到 .Span<T> |
| CopyTo(T[]) |
将此数组的内容复制到指定的数组。 |
| CopyTo(T[], Int32) |
将此数组的内容复制到从指定目标索引处开始的指定数组。 |
| CopyTo(Int32, T[], Int32, Int32) |
将此数组中的指定项复制到指定起始索引处的指定数组。 |
CopyTo(Span<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
将当前ImmutableArray<T>元素复制到 .Span<T>
public:
void CopyTo(Span<T> destination);
public void CopyTo(Span<T> destination);
member this.CopyTo : Span<'T> -> unit
Public Sub CopyTo (destination As Span(Of T))
参数
- destination
- Span<T>
Span<T>这是从当前ImmutableArray<T>复制的元素的目标。
适用于
CopyTo(T[])
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
将此数组的内容复制到指定的数组。
public:
void CopyTo(cli::array <T> ^ destination);
public void CopyTo(T[] destination);
member this.CopyTo : 'T[] -> unit
Public Sub CopyTo (destination As T())
参数
- destination
- T[]
要复制到的数组。
适用于
CopyTo(T[], Int32)
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
将此数组的内容复制到从指定目标索引处开始的指定数组。
public:
virtual void CopyTo(cli::array <T> ^ destination, int destinationIndex);
public void CopyTo(T[] destination, int destinationIndex);
abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (destination As T(), destinationIndex As Integer)
参数
- destination
- T[]
要复制到的数组。
- destinationIndex
- Int32
复制开始位置的 destination 索引。
实现
适用于
CopyTo(Int32, T[], Int32, Int32)
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
将此数组中的指定项复制到指定起始索引处的指定数组。
public:
void CopyTo(int sourceIndex, cli::array <T> ^ destination, int destinationIndex, int length);
public void CopyTo(int sourceIndex, T[] destination, int destinationIndex, int length);
member this.CopyTo : int * 'T[] * int * int -> unit
Public Sub CopyTo (sourceIndex As Integer, destination As T(), destinationIndex As Integer, length As Integer)
参数
- sourceIndex
- Int32
开始复制的此数组的索引。
- destination
- T[]
要复制到的数组。
- destinationIndex
- Int32
复制开始位置的 destination 索引。
- length
- Int32
要从此数组复制的元素数。