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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static IObservableCollection<TTarget> ObservableCast<TTarget>(
	this IEnumerable source
)

Parameters

source  IEnumerable
The source collection.

Type Parameters

TTarget
The type of the target elements.

Return Value

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