Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionUtils.FindValuesOfType Method

Finds a value of the given type in the given collection.

[Visual Basic]
Public Shared Sub FindValuesOfType( _
   ByVal collection As IEnumerable, _
   ByVal type As Type _
public static ICollection FindValuesOfType(
   IEnumerable collection,
   Type type


The collection to search.
The type to look for.

Return Value

a collection of matching values of the given type found, empty if none found, or null if the input collection was null.

See Also

CollectionUtils Class | Spring.Util Namespace