Class ConcurrentList<T>
Represents a concurrent (thread-safe) List.
Inherited Members
Namespace: TriLibCore.General
Assembly: TriLibCore.dll
Syntax
public class ConcurrentList<T>
Type Parameters
Name | Description |
---|---|
T | List values type. |
Constructors
ConcurrentList()
Declaration
public ConcurrentList()
Properties
Count
Gets the List item count.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
this[int]
Gets or sets the T at the specified index.
Declaration
public T this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Property Value
Type | Description |
---|---|
T | T. |
Methods
Add(T)
Adds the specified value to the Dictionary.
Declaration
public void Add(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to add. |
Contains(T)
Determines whether this instance contains the object.
Declaration
public bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The Item to look for. |
Returns
Type | Description |
---|---|
bool |
|
Remove(T)
Removes the specified value.
Declaration
public bool Remove(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to remove. |
Returns
Type | Description |
---|---|
bool |
|