Click or drag to resize

CollectionExtensions Class

Collections extensions.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Inheritance Hierarchy
SystemObject
  Xcalibur.ExtensionsCollectionExtensions

Namespace:  Xcalibur.Extensions
Assembly:  Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
public static class CollectionExtensions

The CollectionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleAddRangeT

Appends a list of objects to an existing collection.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Public methodStatic memberCode exampleApplyT

Applies the specified changes to the collection.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Public methodStatic memberCompareToT
Compares two collections.
Public methodStatic memberGetEnumeratedType(IEnumerable)
Gets the inner type of the enumerable.
Public methodStatic memberGetEnumeratedTypeT(IEnumerableT)
Gets the inner type of the enumerable.
Public methodStatic memberIsEmptyT
Determines whether the ObservableCollection is Empty.
Public methodStatic memberPopulateFromT(IListT, Array)
Appends a collection with the values from the target Array.
Public methodStatic memberPopulateFromT(IListT, IEnumerableT)
Appends a collection with the values from the target enumerable.
Public methodStatic memberCode exampleRemoveRangeT

Removes a list of objects from an existing collection.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Public methodStatic memberSynchCollectionT(IListT, IEnumerableT)

Synches the collection items to the target collection items.

Note: This does not observe sort order.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Public methodStatic memberSynchCollectionT(ObservableCollectionT, IListT, Boolean)

Synches the collection items to the target collection items.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Public methodStatic memberSynchCollectionAsyncT(IListT, IEnumerableT)

Synches the collection items to the target collection items.

Public methodStatic memberSynchCollectionAsyncT(ObservableCollectionT, IListT, Boolean)

Synches the collection items to the target collection items.

Public methodStatic memberToObservableCollectionT
Coverts an enumerable to an ObservableCollection.
Top
See Also