![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Provides a thread-safe array implementation that supports safe access to elements in a multi-threaded environment. More...
Public Member Functions | |
ThreadSafeArray (int length) | |
Initializes a new instance of the ThreadSafeArray<T> class with the specified length. | |
IEnumerator< T > | GetEnumerator () |
Returns an enumerator that iterates through the elements of the array. | |
Properties | |
T | this[int index] [get, set] |
Gets or sets the element at the specified index. | |
int | Length [get] |
Gets the length of the array. | |
Provides a thread-safe array implementation that supports safe access to elements in a multi-threaded environment.
XmobiTea.Collections.Generic.ThreadSafeArray< T >.ThreadSafeArray | ( | int | length | ) |
Initializes a new instance of the ThreadSafeArray<T> class with the specified length.
length | The length of the array to be initialized. |
IEnumerator< T > XmobiTea.Collections.Generic.ThreadSafeArray< T >.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the elements of the array.
|
getset |
Gets or sets the element at the specified index.
index | The zero-based index of the element to get or set. |