Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectUtils.EnumerateFirstElement(IEnumerator) Method

Returns the first element in the supplied enumerator.

[Visual Basic]
Public Overloads Shared Sub EnumerateFirstElement( _
   ByVal enumerator As IEnumerator _
)
[C#]
public static object EnumerateFirstElement(
   IEnumerator enumerator
);

Parameters

enumerator
The IEnumerator to use to enumerate elements.

Return Value

The first element in the supplied enumerator.

Exceptions

Exception Type Condition
IndexOutOfRangeException If the supplied enumerator did not have any elements.

See Also

ObjectUtils Class | Spring.Util Namespace | ObjectUtils.EnumerateFirstElement Overload List