view Paper/src/cs/CodeGearExample.cs @ 28:58042e63c429

add source code
author riono <e165729@ie.u-ryukyu.ac.jp>
date Fri, 04 Feb 2022 17:24:17 +0900
parents
children
line wrap: on
line source

public class CodeGearExample : CodeGear {
    [Take] public CountObject count;

    public override void Run(CodeGearManager cgm) {
        Console.WriteLine(count);

        if (count < 10) {
            cgm.Setup(new CodeGearExample());
            count.number += 1;
            put("count", count);
        } else {
            cgm.GetLocalDGM().Finish();
        }
    }
}