Click or drag to resize

FastObservableCollectionT Class

Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    Cauldron.CollectionsFastObservableCollectionT

Namespace:  Cauldron.Collections
Assembly:  Cauldron.Collections (in Cauldron.Collections.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
[SerializableAttribute]
public class FastObservableCollection<T> : Collection<T>, 
	INotifyCollectionChanged, INotifyPropertyChanged, IEquatable<ObservableCollection<T>>, IEquatable<FastObservableCollection<T>>

Type Parameters

T
The type of elements in the collection.

The FastObservableCollectionT type exposes the following members.

Constructors
  NameDescription
Public methodFastObservableCollectionT
Initializes a new instance of FastObservableCollectionT that is empty and has default initial capacity.
Public methodFastObservableCollectionT(Action)
Initializes a new instance of FastObservableCollectionT that is empty and has default initial capacity.
Public methodFastObservableCollectionT(IEnumerableT, Action)
Initializes a new instance of the FastObservableCollectionT class that contains elements copied from the specified list
Top
Methods
  NameDescription
Public methodAddRange(IEnumerableT)
Adds the elements of the specified collection to the end of the FastObservableCollectionT
Public methodAddRange(IEnumerable)
Adds the elements of the specified collection to the end of the FastObservableCollectionT
Public methodEquals(ObservableCollectionT)
Determines whether the specified object is equal to the current object.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(FastObservableCollectionT)
Determines whether the specified object is equal to the current object.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodMove(Int32, Int32)
Move item at oldIndex to newIndex.
Public methodMove(T, T)
Move item at a to b
Protected methodOnPropertyChanged
Raises a PropertyChanged event.
Public methodRemoveRange(IEnumerableT)
Removes a collection of elements from the FastObservableCollectionT.
Public methodRemoveRange(IEnumerable)
Adds the elements of the specified collection to the end of the FastObservableCollectionT
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when the collection changes, either by adding or removing an item.
Public eventPropertyChanged
PropertyChanged event (per INotifyPropertyChanged).
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleAs(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.)
Public Extension MethodCode exampleAs(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.)
Public Extension MethodCode exampleAsTOverloaded.
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).

Tries to use the implicit and explicit operators if exists when convertion with 'as' returns null.

(Defined by ExtensionsConvertions.)
Public Extension MethodCode exampleCreateTypeT
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.)
Public Extension MethodGetPropertyNonPublicValueT
Searches for the specified property, using the specified binding constraints and returns its value.

Default BindingFlags are Instance and NonPublic

(Defined by ExtensionsReflection.)
Public Extension MethodGetPropertyValue(String, BindingFlags)Overloaded.
Searches for the specified property, using the specified binding constraints and returns its value.
(Defined by ExtensionsReflection.)
Public Extension MethodGetPropertyValueT(String)Overloaded.
Searches for the specified property, using the specified binding constraints and returns its value.

Default BindingFlags are Instance and Public

(Defined by ExtensionsReflection.)
Public Extension MethodGetPropertyValueT(String, BindingFlags)Overloaded.
Searches for the specified property, using the specified binding constraints and returns its value.
(Defined by ExtensionsReflection.)
Public Extension MethodMapToT
Maps all properties and fields of an instance to another instance. The Clone() method is used to copy an instance if exist.

Mapping fails on jagged and multidimensional array. Classes without parameterless constructor will stay null.

(Defined by ExtensionsCloning.)
Public Extension MethodToLong
Tries to convert a Object to an Int64. Returns MinValue if target cannot be parsed.
(Defined by ExtensionsConvertions.)
Public Extension MethodToStringEx(String)Overloaded.
Converts the value of this instance to its equivalent string representation, using the specified format.

The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter

(Defined by Extensions.)
Public Extension MethodToStringEx(String, CultureInfo)Overloaded.
Converts the value of this instance to its equivalent string representation, using the specified format.

The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter

(Defined by Extensions.)
Public Extension MethodTryDispose
Tries to performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This will dispose an object if it implements the IDisposable interface.

(Defined by Extensions.)
Top
See Also