public static void For_02_Body(WgContext Context, S01._for02 Data) { if (Data.Outer.Outer.Numbers[Data.j] < Data.Outer.Outer.Numbers[Data.Outer.i]) { int t = Data.Outer.Outer.Numbers[Data.j]; Data.Outer.Outer.Numbers[Data.j] = Data.Outer.Outer.Numbers[Data.Outer.i]; Data.Outer.Outer.Numbers[Data.Outer.i] = t; } // DEBUG System.Threading.Thread.Sleep(500); }
public static bool For_02_Check(WgContext Context, S01._for02 Data) { return(Data.j < Data.Outer.Outer.Numbers.Length); }
public static void For_02_Step(WgContext Context, S01._for02 Data) { ++Data.j; }
// nested 'for' public static void For_02_Init(WgContext Context, S01._for02 Data) { Data.j = Data.Outer.i + 1; }