Sometimes, you wanted to copy part of an array to another array. Use the following method, it can handle all
sorts of copy, and don't need to worry the source array and destination array length.
Array.Copy(Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length);
// Summary:
// Copies a range of elements from an System.Array starting at the specified
// source index and pastes them to another System.Array starting at the specified
// destination index. The length and the indexes are specified as 64-bit integers.
//
// Parameters:
// destinationIndex:
// A 64-bit integer that represents the index in the destinationArray at which
// storing begins.
//
// sourceIndex:
// A 64-bit integer that represents the index in the sourceArray at which copying
// begins.
//
// length:
// A 64-bit integer that represents the number of elements to copy. The integer
// must be between zero and System.Int32.MaxValue, inclusive.
//
// destinationArray:
// The System.Array that receives the data.
//
// sourceArray:
// The System.Array that contains the data to copy.
//
sorts of copy, and don't need to worry the source array and destination array length.
Array.Copy(Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length);
// Summary:
// Copies a range of elements from an System.Array starting at the specified
// source index and pastes them to another System.Array starting at the specified
// destination index. The length and the indexes are specified as 64-bit integers.
//
// Parameters:
// destinationIndex:
// A 64-bit integer that represents the index in the destinationArray at which
// storing begins.
//
// sourceIndex:
// A 64-bit integer that represents the index in the sourceArray at which copying
// begins.
//
// length:
// A 64-bit integer that represents the number of elements to copy. The integer
// must be between zero and System.Int32.MaxValue, inclusive.
//
// destinationArray:
// The System.Array that receives the data.
//
// sourceArray:
// The System.Array that contains the data to copy.
//
5 comments:
Great Article
Dot Net Training Institutes in Chennai | .net training online | Dot Net Training in Chennai | .Net Training in Chennai | ASP.NET Training
C# Training | ASP.NET Training | ASP.NET MVC Training in Chennai
Dot Net Interview Questions
Great Article
C# Training in Chennai | C# Online Training | ASP.NET Training in Chennai
C# Training in Chennai | Dot Net Training in Chennai | Dot Net Training in Chennai
Great Article
Project Centers in Chennai
Final Year Projects for CSE
hbar coin hangi borsada
btcst coin hangi borsada
vet coin hangi borsada
via coin hangi borsada
tron hangi borsada
juventus coin hangi borsada
beta coin hangi borsada
auto coin hangi borsada
mtl coin hangi borsada
tiktok jeton hilesi
tiktok jeton hilesi
referans kimliği nedir
gate güvenilir mi
tiktok jeton hilesi
paribu
btcturk
bitcoin nasıl alınır
yurtdışı kargo
Post a Comment