Click or drag to resize
IUserAccessiableCreateCyclicArray Method
Returns an integers array with size inSize, containing numbers in the range [1,inSize], in cyclic order, starting with the number inStart.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
int[] CreateCyclicArray(
	int inSize,
	int inStart
)

Parameters

inSize
Type: SystemInt32
represents both result array size and the max value of the content range
inStart
Type: SystemInt32
the value from [1,inSize] to start the cycle with

Return Value

Type: Int32
integers array (int[] type)
Examples
CreateCyclicArray(5,3), will return an array with size of 5 (5 cells); the array's values content are the numbers 1,2,3,4,5, placed in the next order: 3,4,5,1,2
See Also