Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectUtils.EnumerateElementAtIndex(IEnumerator, Int32) Method

Returns the element at the specified index using the supplied enumerator.

[Visual Basic]
Public Overloads Shared Sub EnumerateElementAtIndex( _
   ByVal enumerator As IEnumerator, _
   ByVal index As Integer _
)
[C#]
public static object EnumerateElementAtIndex(
   IEnumerator enumerator,
   int index
);

Parameters

enumerator
The IEnumerator to use to enumerate elements until the supplied index is reached.
index
The index of the element in the enumeration to return.

Return Value

The element at the specified index using the supplied enumerator.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException If the supplied index was less than zero, or the supplied enumerator did not contain enough elements to be able to reach the supplied index.

See Also

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