From 6bc4123e40a3fe3ffc768fa7f943dfcda034e571 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 8 Mar 2006 17:37:25 +0000 Subject: some small additions, like ability to set pd class type svn path=/trunk/externals/clr/; revision=4659 --- Counter/Counter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Counter/Counter.cs') diff --git a/Counter/Counter.cs b/Counter/Counter.cs index b59945e..13688e5 100755 --- a/Counter/Counter.cs +++ b/Counter/Counter.cs @@ -23,7 +23,8 @@ public class Counter: } // this function MUST exist - private static void Setup(Counter obj) + // returns void or ClassType + private static ClassType Setup(Counter obj) { Add(new MethodBang(obj.MyBang)); Add(new MethodFloat(obj.MyFloat)); @@ -34,6 +35,7 @@ public class Counter: Add(new MethodAnything(obj.MyAnything)); Post("Count.Main"); + return ClassType.Default; } protected virtual void MyBang() -- cgit v1.2.1