1. The properties and methods of the Array class
Common properties and descriptions of the Array class
Attributes |
illustrate |
Length |
Get a 32-bit integer that represents the total number of elements in all dimensions of the Array |
LongLength |
Get a 16-bit integer that represents the total number of elements in all dimensions of the Array |
Rank |
Get the rank (dimension) of an Array |
Common methods and descriptions of the Array class
method |
method category |
illustrate |
Copy |
static method |
Copies a subset of elements from one Array into another Array, performing type casting and boxing as needed |
IndexOf |
static method |
Returns the index of the first occurrence of a value in a one-dimensional Array or part of an Array |
Resize |
static method |
Change the size of the array to the new size specified |
Reverse |
static method |
Reverse the order of elements in a bunch of Arrays or part of an Array |
Sort |
static method |
Sort elements in a stack of Array objects |
Find |
static method |
Searches for elements that match the criteria defined by the specified predicate, then returns the first match in the entire Array |
CopyTo |
non-static method |
Copies all elements of the current stack of Arrays to the specified set of Arrays |
GetLength |
non-static method |
Gets a 32-bit integer that represents the number of elements in the specified dimension of the Array |
GetLongLongth |
non-static method |
Gets a 64-bit integer that represents the number of elements in the specified dimension of the Array |
GetLowerBound |
non-static method |
Get the lower bound of the specified dimension in the Array |
GetUpperBound |
non-static method |
Get the upper limit of the specified dimension in the Array |
GetValue |
non-static method |
Get the value of the specified element in the Array |
SetValue |
non-static method |
Sets the specified element in the current Array to the specified value |