SalArray<T>

PPJ.Runtime.SalArray<T>

Namespace: PPJ.Runtime

Assembly: PPJ.Web.49 (4.9.0.0)

Dynamic array generic class. This class replicates SAL dynamic arrays. It can be used without being declared as an inner class by using the new generics syntax.

public class SalArray<T> : SalArray, IEnumerable<T>, IList<T>, ICollection<T>

Parameters

Constructors

Constructs a new dynamic array.

Constructs a new array.

Constructs a new array. Example: new SalArray("2:3")

Properties

T: Returns or sets the item at the specified index.

T: Returns or sets the item at the specified coordinates in a multidimensional array.

T[]: Returns the internal array.

Methods

Adds an object to the end of the array.

Adds the elements of the specified collection to the end of the array.

Throws:

Determines whether an element is in the array.

Returns: Boolean. true if item is found in the array; otherwise, false.

Copies the entire array to a compatible one-dimensional array, starting at the beginning of the target array.

Throws:

Copies the entire array to a compatible one-dimensional array, starting at the specified index of the target array.

Throws:

Returns the internal array.

Returns: T[].

Returns the internal array resized to guarantee the specified minimum unmber of items.

Returns: T[].

Returns the internal multidimensional array resized to guarantee the specified number of items in each dimension.

Returns: T[,].

Returns the internal multidimensional array resized to guarantee the specified number of items in each dimension.

Returns: T[,,].

Returns the internal multidimensional array resized to guarantee the specified number of items in each dimension.

Returns: T[,,,].

Searches for the specified object and returns the zero-based index of the first occurrence within the entire array.

Returns: Int32. The zero-based index of the first occurrence of item , if found; otherwise, –1.

Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the array.

Returns: Int32. The zero-based index of the first occurrence of item within the range of elements, if found; otherwise, –1.

Throws:

Inserts an element into the array at the specified index.

Throws:

Inserts the elements of a collection into the array at the specified index.

Throws:

Removes the first occurrence of a specific object from the array.

Returns: Boolean. true if item is successfully removed; otherwise, false. This method also returns false if item was not found.

Removes the element at the specified index.

Throws:

Sorts the items in the array using the specified comparison expression.

Implements

Last updated