ArraySegment<T>.CopyTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CopyTo(ArraySegment<T>) |
Copies the contents of this instance into the specified destination array segment of the same type |
CopyTo(T[]) |
Copies the contents of this instance into the specified destination array of the same type |
CopyTo(T[], Int32) |
Copies the contents of this instance into the specified destination array of the same type |
CopyTo(ArraySegment<T>)
- Source:
- ArraySegment.cs
- Source:
- ArraySegment.cs
- Source:
- ArraySegment.cs
Copies the contents of this instance into the specified destination array segment of the same type T
.
public:
void CopyTo(ArraySegment<T> destination);
public void CopyTo (ArraySegment<T> destination);
member this.CopyTo : ArraySegment<'T> -> unit
Public Sub CopyTo (destination As ArraySegment(Of T))
Parameters
- destination
- ArraySegment<T>
The array segment into which the contents of this instance will be copied.
Exceptions
The underlying array of this instance is null
.
-or-
The underlying array of destination
is null
.
The length of the underlying array of this instance is larger than the length of the underlying array of destination
.
Applies to
CopyTo(T[])
- Source:
- ArraySegment.cs
- Source:
- ArraySegment.cs
- Source:
- ArraySegment.cs
Copies the contents of this instance into the specified destination array of the same type T
.
public:
void CopyTo(cli::array <T> ^ destination);
public void CopyTo (T[] destination);
member this.CopyTo : 'T[] -> unit
Public Sub CopyTo (destination As T())
Parameters
- destination
- T[]
The array of type T
into which the contents of this instance will be copied.
Exceptions
The underlying array of this instance is null
.
Applies to
CopyTo(T[], Int32)
- Source:
- ArraySegment.cs
- Source:
- ArraySegment.cs
- Source:
- ArraySegment.cs
Copies the contents of this instance into the specified destination array of the same type T
, starting at the specified destination index.
public:
virtual void CopyTo(cli::array <T> ^ destination, int destinationIndex);
public:
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
member this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (destination As T(), destinationIndex As Integer)
Parameters
- destination
- T[]
The array of type T
into which the contents of this instance will be copied.
- destinationIndex
- Int32
The index in destination
at which storing begins.
Implements
Exceptions
The underlying array of this instance is null
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기