Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionUtils.FindFirstMatch Method

Returns the first element contained in both, source and candidates.

[Visual Basic]
Public Shared Sub FindFirstMatch( _
   ByVal source As IEnumerable, _
   ByVal candidates As IEnumerable _
)
[C#]
public static object FindFirstMatch(
   IEnumerable source,
   IEnumerable candidates
);

Parameters

source
the source enumerable. may be null
candidates
the list of candidates to match against source elements. may be null

Return Value

the first element found in both enumerables or null

Remarks

The implementation assumes that candidates <<< source

See Also

CollectionUtils Class | Spring.Util Namespace