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
  callback.ShellBoost.Core.UtilitiesConcurrentListT

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldSyncObject
Gets the synchronization object.
Top
See Also