Enumerate

Class Overview
When the variable in application corresponds to repetition processing, repetitive processing by foreach can be executed. (in .Net, when IEnumerator is inherited).




public Enumerate(AppVar enumerable)
Description
Constructor

Parameter
enumerable
An enumerable variable in the application

Sample
List<int> list = new List<int>();
list.Add(0);
list.Add(1);
list.Add(2);
AppVar appList = _app.Dim(list);
int sum = 0;
foreach (AppVar element in new Enumerate(appList))
{
    sum += (int)element.Core;
}



public IEnumerator<AppVarGetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
        Description
        Produces an enumerator for the provided variable.

        Return value 
        An enumerator that allows iterative processing on the variable.


JR