ConcurrentListT Class |
Namespace: ShellBoost.Core.Utilities
public class ConcurrentList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyList<T>, IReadOnlyCollection<T>
The ConcurrentListT type exposes the following members.
Name | Description | |
---|---|---|
ConcurrentListT |
Initializes a new instance of the list class that is empty and has the default initial capacity.
| |
ConcurrentListT(IEnumerableT) |
Initializes a new instance of the list class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
| |
ConcurrentListT(Int32) |
Initializes a new instance of the list class that is empty and has the specified initial capacity.
|
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in the list.
| |
Item |
Gets or sets the element at the specified index.
| |
List |
Gets the underlying list object.
|
Name | Description | |
---|---|---|
Add |
Adds an object to the end of the list.
| |
AddRange |
Adds the elements of the specified collection to the end of the list.
| |
Clear |
Removes all elements from the list.
| |
Contains |
Determines whether an element is in the list.
| |
CopyTo |
Copies the entire list to a compatible one-dimensional array, starting at the specified index of the target array.
| |
Find |
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire list.
| |
FindAll |
Retrieves all the elements that match the conditions defined by the specified function;
| |
GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
IndexOf |
Searches for the specified object and returns the zero-based index of the first occurrence within the entire list.
| |
Insert |
Inserts an element into the list at the specified index.
| |
Remove |
Removes the first occurrence of a specific object from the list.
| |
RemoveAll |
Removes all the elements that match the conditions defined by the specified predicate.
| |
RemoveAt |
Removes the element at the specified index of the list.
| |
Sort |
Sorts the elements in the entire list using the default comparer.
| |
Sort(IComparerT) |
Sorts the elements in the entire list using the specified comparer.
| |
ToArray |
Copies the elements of the list to a new array, and optionally clear the collection at the same time.
| |
ToList |
Copies the elements of the list to a new list, and optionally clear the collection at the same time.
|
Name | Description | |
---|---|---|
SyncObject |
Gets the synchronization object.
|