Mercurial > hg > Database > Christie-sharp
view Test/Example/FizzBuzz/Counter.cs @ 51:486683ead53f
bug survey
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 11 Jan 2022 20:02:18 +0900 |
parents | 476b6efeca5b |
children | e75e143b92e7 |
line wrap: on
line source
using System; using System.Threading; using Christie_net.annotation; using Christie_net.codegear; namespace Christie_net.Test.Example.FizzBuzz { public class Counter: CodeGear { [Take] private int num; public override void Run(CodeGearManager cgm) { if (num <= 100) { GetDgm("FizzBuzz").Put("num", num); //cgm.GetLocalDGM().Put("num", num+1); //Console.WriteLine(num); cgm.Setup(new Counter()); } else { GetDgm("FizzBuzz").Put("num", -1); cgm.GetLocalDGM().Finish(); } } } }