![]() | ConcurrentCollection<T> Methods |
The ConcurrentCollection<T> generic type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add |
Adds an item to the ConcurrentCollection<T>.
|
![]() | AddRange |
Adds a collection of elements to the ConcurrentCollection<T>.
|
![]() | Clear |
Removes all items from the ConcurrentCollection<T>.
|
![]() | Contains(T) |
Determines whether the ConcurrentCollection<T> contains a specific value.
This is lock-free and can return true even though the element has already been removed.
|
![]() | Contains(T, Boolean) |
Determines whether the ConcurrentCollection<T> contains a specific value.
|
![]() | GetEnumerator |
Returns an enumerator that iterates through the ConcurrentCollection<T>.
The enumerator will iterate through a copy of the internal list.
Changes in the collection during the iteration are ignored.
|
![]() | OnClear |
Occures if all elements of the ConcurrentCollection<T> was removed.
|
![]() | OnItemAdded |
Occures if a new item was added to the ConcurrentCollection<T>.
|
![]() | OnItemsAdded |
Occures if new items were added to the ConcurrentCollection<T>.
|
![]() | OnRemove(T) |
Occures if an element was removed from the ConcurrentCollection<T>.
|
![]() | OnRemove(T[]) |
Occures if elements were removed from the ConcurrentCollection<T>.
|
![]() | Remove(Func<T, Boolean>) |
Removes all elements that matches the predicate from the ConcurrentCollection<T>.
|
![]() | Remove(T) |
Removes the first occurrence of a specific object from the ConcurrentCollection<T>.
|
Name | Description | |
---|---|---|
![]() | Append<T> |
Concatenates an item into a sequences.
(Defined by Extensions.) |
![]() ![]() | As(Type) | Overloaded.
Converts a type using the implicit or explicit operators. If both fails it will try to
convert the value with ChangeType(Object, Type).
(Defined by ExtensionsConvertions.) |
![]() ![]() | As(Type, Type) | Overloaded.
Converts a type using the implicit or explicit operators. If both fails it will try to
convert the value with ChangeType(Object, Type).
(Defined by ExtensionsConvertions.) |
![]() ![]() | As<T>() | Overloaded.
Performs a cast between compatible reference types. If a convertion is not possible then
null is returned. As a last resort it will use ChangeType(Object, Type).
(Defined by ExtensionsConvertions.)Tries to use the implicit and explicit operators if exists when convertion with 'as' returns null. |
![]() ![]() | CreateType<T> |
Creates a new Type that implements the properties of an interface defined by T
and copies all value of anon to the new object.
(Defined by ExtensionsInterception.) |
![]() | Distinct<T> |
Returns distinct elements from a sequence by using a selector to compare values.
(Defined by Extensions.) |
![]() | Foreach<T> |
Performs the specified action on each element of the IEnumerable<T> (Defined by Extensions.) |
![]() | GetPropertyNonPublicValue<T> |
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.)Default BindingFlags are Instance and NonPublic |
![]() | GetPropertyValue(String, BindingFlags) | Overloaded.
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.) |
![]() | GetPropertyValue<T>(String) | Overloaded.
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.)Default BindingFlags are Instance and Public |
![]() | GetPropertyValue<T>(String, BindingFlags) | Overloaded.
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.) |
![]() | Interleave<T> |
Interleve combine two collections.
(Defined by Extensions.) |
![]() | Join<T> |
Concatenates the members of a collection, using the specified separator between each member.
(Defined by Extensions.) |
![]() | MapTo<T> |
Maps all properties and fields of an instance to another instance. The Clone() method is used to copy an instance if exist.
(Defined by ExtensionsCloning.)Mapping fails on jagged and multidimensional array. Classes without parameterless constructor will stay null. |
![]() | MaxBy<T, TKey>(Func<T, TKey>) | Overloaded.
Returns the item with the maximum value in a sequence of values.
(Defined by Extensions.) |
![]() | MaxBy<T, TKey>(Func<T, TKey>, IComparer<TKey>) | Overloaded.
Returns the item with the maximum value in a sequence of values.
(Defined by Extensions.) |
![]() | MinBy<T, TKey>(Func<T, TKey>) | Overloaded.
Returns the item with the minimum value in a sequence of values.
(Defined by Extensions.) |
![]() | MinBy<T, TKey>(Func<T, TKey>, IComparer<TKey>) | Overloaded.
Returns the item with the minimum value in a sequence of values.
(Defined by Extensions.) |
![]() | Operations |
Provides linq like methods for handling and converting IEnumerables.
(Defined by Extensions.)This is separated from actual extension to avoid confusions with System.Linq extensions. And also to avoid accidental usage. |
![]() | ToArray |
Converts a IEnumerable to an array
(Defined by ExtensionsConvertions.) |
![]() | ToLong | (Defined by ExtensionsConvertions.) |
![]() | ToStringEx(String) | Overloaded.
Converts the value of this instance to its equivalent string representation, using the
specified format.
(Defined by Extensions.)The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter |
![]() | ToStringEx(String, CultureInfo) | Overloaded.
Converts the value of this instance to its equivalent string representation, using the
specified format.
(Defined by Extensions.)The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter |
![]() | TryDispose |
Tries to performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
(Defined by Extensions.)This will dispose an object if it implements the IDisposable interface. |
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable.GetEnumerator |
Returns an enumerator that iterates through the ConcurrentCollection<T>.
The enumerator will iterate through a copy of the internal list.
Changes in the collection during the iteration are ignored.
|