diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/cs/CodeGearExample.cs	Fri Feb 04 17:24:17 2022 +0900
@@ -0,0 +1,15 @@
+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();
+        }
+    }
+}
\ No newline at end of file