PbArray Class
.NET Standard 2.x
Defines a PowerBuilder-style array.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public class PbArray<T> : IEnumerable<T>
Constructors
| Name | Description |
|---|---|
| PbArray() | Initializes an instance of PbArray |
| PbArray(int length) | Initializes an instance of PbArray |
| PbArray(int length1, int length2) | Initializes an instance of PbArray |
Properties
| Name | Return Type | Description |
|---|---|---|
| ElementType | type | Gets the data type of the elements of PBArray. |
| Length | int | Gets the total number of elements in all the dimensions of PBArray. |
| Item[int] | T | Gets or sets the element at the specified index. |
| Item[int, int] | T | Gets or sets the element at the specified two-dimensional array. |
Methods
| Name | Return Type | Description |
|---|---|---|
| Add(T value) | void | Adds an object to the end of the PBArray. |
| GetEnumerator() | IEnumerator |
Returns an enumerator that iterates through the PBArray. |
| GetLowerBound(int dimension) | int | Gets the index of the first element of the specified dimension in the PBArray. |
| GetUpperBound(int dimension) | int | Gets the index of the last element of the specified dimension in the PBArray. |
| GetValue(int index) | T | Gets the value of the specified element in the current PBArray. |
| GetValue(int index1, int index2) | T | Gets the value at the specified position in the two-dimensional PBArray. |
| SetValue(T value, int index) | void | Sets a value to the element at the specified position in the one-dimensional PBArray. |
| SetValue(T value, int index1, int index2) | void | Sets a value to the element at the specified position in the two-dimensional PBArray. |
Operators
| Name | Description |
|---|---|
| Implicit(T[,] to PbArray |
Defines an implicit conversion which converts a two-dimensional object to a PbArray |
| Implicit(T[] to PbArray |
Defines an implicit conversion which converts a one-dimensional object to a PbArray |
Examples
Coming soon.