Cool, the TestHarness project is so I can call small segments and debug through the LitDev extension. With similar code you could also debug through SmallBasicLibrary.dll or LitDev.dll to see how stuff works.
Because Small Basic and extensions use the Primitive type (this is one thing that really limits SB) and we need to use Reflection to access the core SB environment like GraphicsWindow extensions can be quite convoluted.
Another challenge would be to write something simple like the turtle in C# without referencing SmallBasicLibrary at all. The code could then be free from the Primitive type and all the Reflection code. GraphicsWindow is just a Canvas control sitting in a Window.
Because Small Basic and extensions use the Primitive type (this is one thing that really limits SB) and we need to use Reflection to access the core SB environment like GraphicsWindow extensions can be quite convoluted.
Another challenge would be to write something simple like the turtle in C# without referencing SmallBasicLibrary at all. The code could then be free from the Primitive type and all the Reflection code. GraphicsWindow is just a Canvas control sitting in a Window.