|
CollectionExtensionsCopyT Method
|
Returns a copy of the
Array.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax public static T[] Copy<T>(
this T[] source,
int startIndex,
int length
)
JavaScript does not support generic types or methods.
View SourceParameters
- source T
- The source Array whose elements are to be copied.
- startIndex Int32
- The source array index from where the elements are to be copied.
- length Int32
- The number of elements to be copied starting from the startIndex.
Type Parameters
- T
- Type of the Array to be copied.
Return Value
TAn
Array of elements copied from the specified portion of the source
Array.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks
Returned
Array will be extended as needed to make it the specified
length, but
it will never be less than the source
Array length -
startIndex.
See Also