Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionUtils.FindValueOfType(ICollection, Type) Method

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

[Visual Basic]
Public Overloads Shared Sub FindValueOfType( _
   ByVal collection As ICollection, _
   ByVal type As Type _
)
[C#]
public static object FindValueOfType(
   ICollection collection,
   Type type
);

Parameters

collection
The collection to search.
type
The type to look for.

Return Value

a value of the given type found, or null if none.

Exceptions

Exception Type Condition
ArgumentException If more than one value of the given type is found

See Also

CollectionUtils Class | Spring.Util Namespace | CollectionUtils.FindValueOfType Overload List