ILNumerics Ultimate VS

ExtensionMethodsIteratorTout Method (BaseArrayBoolean, FuncBoolean, 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.5.0.0 (5.5.7503.3146)
Syntax

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

Parameters

A
Type: ILNumericsBaseArrayBoolean
The array instance.
converter
Type: SystemFuncBoolean, 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 BaseArrayBoolean. 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