Click or drag to resize

EnumerableExtensionsOfTypeT Method

[This is preliminary documentation and is subject to change.]

Filters the objects in data based on the provided type

Namespace:  CSInfrastructure.Extensions
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static IEnumerable<T> OfType<T>(
	this IEnumerable<T> data,
	Type type
)

Parameters

data
Type: System.Collections.GenericIEnumerableT
The collection to filter
type
Type: SystemType
The type of objects to filter from the collection

Type Parameters

T
The type of objects in the collection

Return Value

Type: IEnumerableT
A subset of objects from data that are of type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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).
See Also