Generated by DocFX

Class ObservableRangeCollection<T>

Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.

Inheritance
System.Object
ObservableRangeCollection<T>
Namespace: ISynergy.Framework.Core.Collections
Assembly: ISynergy.Framework.Core.dll
Syntax
public class ObservableRangeCollection<T> : ObservableCollection<T>
Type Parameters
Name Description
T

Constructors

View Source

ObservableRangeCollection()

Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class.

Declaration
public ObservableRangeCollection()
View Source

ObservableRangeCollection(IEnumerable<T>)

Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class that contains elements copied from the specified collection.

Declaration
public ObservableRangeCollection(IEnumerable<T> collection)
Parameters
Type Name Description
IEnumerable<T> collection

collection: The collection from which the elements are copied.

Methods

View Source

AddRange(IEnumerable<T>, NotifyCollectionChangedAction)

Adds the elements of the specified collection to the end of the ObservableCollection(Of T).

Declaration
public void AddRange(IEnumerable<T> collection, NotifyCollectionChangedAction notificationMode = null)
Parameters
Type Name Description
IEnumerable<T> collection

The collection.

NotifyCollectionChangedAction notificationMode

The notification mode.

View Source

RemoveRange(IEnumerable<T>, NotifyCollectionChangedAction)

Removes the first occurence of each item in the specified collection from ObservableCollection(Of T). NOTE: with notificationMode = Remove, removed items starting index is not set because items are not guaranteed to be consecutive.

Declaration
public void RemoveRange(IEnumerable<T> collection, NotifyCollectionChangedAction notificationMode = null)
Parameters
Type Name Description
IEnumerable<T> collection

The collection.

NotifyCollectionChangedAction notificationMode

The notification mode.

View Source

Replace(T)

Clears the current collection and replaces it with the specified item.

Declaration
public void Replace(T item)
Parameters
Type Name Description
T item

The item.

View Source

ReplaceRange(IEnumerable<T>)

Clears the current collection and replaces it with the specified collection.

Declaration
public void ReplaceRange(IEnumerable<T> collection)
Parameters
Type Name Description
IEnumerable<T> collection

The collection.

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)