Mono.CSharp.Foreach.ArrayForeach.ArrayForeach C# (CSharp) Method

ArrayForeach() public method

public ArrayForeach ( Foreach @foreach, int rank ) : System
@foreach Foreach
rank int
return System
			public ArrayForeach (Foreach @foreach, int rank)
			{
				for_each = @foreach;
				statement = for_each.statement;
				loc = @foreach.loc;
				variable = new LocalVariableReference (for_each.variable, loc);

				counter = new StatementExpression[rank];
				variables = new TemporaryVariableReference[rank];
				length_exprs = new Expression [rank];

				//
				// Only use temporary length variables when dealing with
				// multi-dimensional arrays
				//
				if (rank > 1)
					lengths = new TemporaryVariableReference [rank];
			}