![]() |
Energy Core Library
|
Thread safe array of objects More...
Public Member Functions | |
| new void | Clear () |
| Removes all elements from the list More... | |
| T | New () |
| Create and add new element to list and return More... | |
| bool | Equals (Array< T > array) |
| new T | Add (T item) |
| new T | Insert (int index, T item) |
| new void | Remove (T item) |
| new void | RemoveAt (int index) |
| new void | RemoveRange (int index, int count) |
| new void | RemoveAll (Predicate< T > match) |
| new T [] | ToArray () |
Static Public Member Functions | |
| static Array< T > | operator+ (Array< T > left, T right) |
| static Array< T > | operator- (Array< T > left, T right) |
| static T [] | SubArray (T[] array, int start, int count) |
| Get sub array from an existing one. More... | |
| static T [] | SubArray (T[] array, int start, int count, bool pad) |
| Get sub array from an existing one. More... | |
Properties | |
| new T | this[int index] [get, set] |
| Gets or sets the element at the specified index More... | |
| new int | Count [get, set] |
| Gets or sets the number of elements More... | |
| T | First [get] |
| Return first element or default if list is empty More... | |
| T | Last [get] |
| Return last element or default if list is empty More... | |
Thread safe array of objects
| T |
| new T Energy.Base.Collection.Array< T >.Add | ( | T | item | ) |
| new void Energy.Base.Collection.Array< T >.Clear | ( | ) |
Removes all elements from the list
| bool Energy.Base.Collection.Array< T >.Equals | ( | Array< T > | array | ) |
| new T Energy.Base.Collection.Array< T >.Insert | ( | int | index, |
| T | item | ||
| ) |
| T Energy.Base.Collection.Array< T >.New | ( | ) |
Create and add new element to list and return
|
static |
|
static |
| new void Energy.Base.Collection.Array< T >.Remove | ( | T | item | ) |
| new void Energy.Base.Collection.Array< T >.RemoveAll | ( | Predicate< T > | match | ) |
| new void Energy.Base.Collection.Array< T >.RemoveAt | ( | int | index | ) |
| new void Energy.Base.Collection.Array< T >.RemoveRange | ( | int | index, |
| int | count | ||
| ) |
|
static |
Get sub array from an existing one.
| array | |
| start | |
| count |
|
static |
Get sub array from an existing one.
| array | |
| start | |
| count | |
| pad |
| new T [] Energy.Base.Collection.Array< T >.ToArray | ( | ) |
|
getset |
Gets or sets the number of elements
When setting to number which is higher than current capacity, default elements will be added to list
|
get |
Return first element or default if list is empty
|
get |
Return last element or default if list is empty
|
getset |
Gets or sets the element at the specified index
| index |