ILNumerics Ultimate VSExtensionMethodsIteratorTout Method (BaseArrayUInt16, FuncUInt16, Tout, NullableStorageOrders)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Efficient iterator over the array for use in foreach loops.

[ILNumerics Core Module]

Namespace: ILNumerics
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static IEnumerable<Tout> Iterator<Tout>(
	this BaseArray<ushort> A,
	Func<ushort, Tout> converter,
	Nullable<StorageOrders> order = null
)
where Tout : struct, new()

Parameters

A
Type: ILNumericsBaseArrayUInt16
The array instance.
converter
Type: SystemFuncUInt16, Tout
Converter function transforming the element type into the required output type Tout.
order (Optional)
Type: SystemNullableStorageOrders
[Optional] Determines the order the elements are walked along. Default: null (DefaultStorageOrder)

Type Parameters

Tout

Return Value

Type: IEnumerableTout
Slim, self destructing iterator instance, iterating over all elements of this array.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BaseArrayUInt16. 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).
Remarks

[ILNumerics Core Module]

See Also

Reference