示例#1
0
 public static void While_01_SubProc(WgContext Context, S02._while01 Data)
 {
     if ((Data.Outer.Top % 12) == 11)
     {
         Context.LoopBreak();
     }
 }
示例#2
0
        public static void While_01_Body(WgContext Context, S02._while01 Data)
        {
            --Data.Outer.Top;

            if ((Data.Outer.Top % 5) == 0)
            {
                Context.LoopContinue();
            }

            Data.Outer.Sum += Data.Outer.Top;
            Data.Outer.Numbers.Add(Data.Outer.Top);

            Context.ProceedTo <S02._while01> (While_01_Dummy);
            Context.ProceedTo <S02._while01> (While_01_SubProc);
        }
示例#3
0
 public static void While_01_Dummy(WgContext Context, S02._while01 Data)
 {
     Console.WriteLine("iteration trail for " + Data.Outer.Top);
 }
示例#4
0
 //
 public static bool While_01_Check(WgContext Context, S02._while01 Data)
 {
     return(Data.Outer.Top > 0);
 }