ArrayMath.GetEnumerator Method

Returns an enumerator that iterates over the elements of a range.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static IEnumerator<int> GetEnumerator(
	this Range range
)

Parameters

range  Range
The range to iterate over.

Return Value

IEnumerator<Int32>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Range. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

NotSupportedException

One of the bounds of the range is an index that counts from the end.

See Also