Click or drag to resize

ObservableExtensionsObservableCastTTarget Method

Returns an observable collection of objects of type TTarget that mirrors the source collection.

Namespace:  TomsToolbox.ObservableCollections
Assembly:  TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll)
Syntax
public static IObservableCollection<TTarget> ObservableCast<TTarget>(
	this IEnumerable source
)

Parameters

source
Type: System.CollectionsIEnumerable
The source collection.

Type Parameters

TTarget
The type of the target elements.

Return Value

Type: IObservableCollectionTTarget
The observable collection of objects of type TTarget that mirrors the source collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
See Also