Mercurial > hg > Papers > 2022 > riono-master
comparison 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 |
comparison
equal
deleted
inserted
replaced
27:cdf988e1ccf2 | 28:58042e63c429 |
---|---|
1 public class CodeGearExample : CodeGear { | |
2 [Take] public CountObject count; | |
3 | |
4 public override void Run(CodeGearManager cgm) { | |
5 Console.WriteLine(count); | |
6 | |
7 if (count < 10) { | |
8 cgm.Setup(new CodeGearExample()); | |
9 count.number += 1; | |
10 put("count", count); | |
11 } else { | |
12 cgm.GetLocalDGM().Finish(); | |
13 } | |
14 } | |
15 } |