Click or drag to resize

ConcurrentListT Class

Represents a thread-safe, strongly typed, list of objects that can be accessed by index.
Inheritance Hierarchy
SystemObject
  ShellBoost.Core.UtilitiesConcurrentListT

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class ConcurrentList<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyList<T>, IReadOnlyCollection<T>

Type Parameters

T
The type of elements in the list.

The ConcurrentListT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the list.
Public propertyItem
Gets or sets the element at the specified index.
Protected propertyList
Gets the underlying list object.
Top
Methods
  NameDescription
Public methodAdd
Adds an object to the end of the list.
Public methodAddRange
Adds the elements of the specified collection to the end of the list.
Public methodClear
Removes all elements from the list.
Public methodContains
Determines whether an element is in the list.
Public methodCopyTo
Copies the entire list to a compatible one-dimensional array, starting at the specified index of the target array.
Public methodFind
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire list.
Public methodFindAll
Retrieves all the elements that match the conditions defined by the specified function;
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire list.
Public methodInsert
Inserts an element into the list at the specified index.
Public methodRemove
Removes the first occurrence of a specific object from the list.
Public methodRemoveAll
Removes all the elements that match the conditions defined by the specified predicate.
Public methodRemoveAt
Removes the element at the specified index of the list.
Public methodSort
Sorts the elements in the entire list using the default comparer.
Public methodSort(IComparerT)
Sorts the elements in the entire list using the specified comparer.
Public methodToArray
Copies the elements of the list to a new array, and optionally clear the collection at the same time.
Public methodToList
Copies the elements of the list to a new list, and optionally clear the collection at the same time.
Top
Fields
  NameDescription
Protected fieldSyncObject
Gets the synchronization object.
Top
See Also