ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Collections.Generic.ThreadSafeArray< T > Class Template Reference

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

this[int index] [get, set]
 Gets or sets the element at the specified index.
 
int Length [get]
 Gets the length of the array.
 

Detailed Description

Provides a thread-safe array implementation that supports safe access to elements in a multi-threaded environment.

Constructor & Destructor Documentation

◆ ThreadSafeArray()

Initializes a new instance of the ThreadSafeArray<T> class with the specified length.

Parameters
lengthThe length of the array to be initialized.

Member Function Documentation

◆ GetEnumerator()

IEnumerator< T > XmobiTea.Collections.Generic.ThreadSafeArray< T >.GetEnumerator ( )

Returns an enumerator that iterates through the elements of the array.

Returns
An enumerator that can be used to iterate through the array.

Property Documentation

◆ this[int index]

T XmobiTea.Collections.Generic.ThreadSafeArray< T >.this[int index]
getset

Gets or sets the element at the specified index.

Parameters
indexThe zero-based index of the element to get or set.

The documentation for this class was generated from the following file: