Im using the LuaInterface for C#.
In my C# project i got the file Program.cs
which uses the namespace Test and the class is called Program.
In the class Program, i got the method PrintTest().
How do i reach that method from Lua? I have tried something like this:
luanet.Test.Program:PrintTest();
But lua says "No such method".
I have been looking at this thread: LuaInterface - how-to restrict access to .Net classes? and managed to create a form like he does, so the problem only occurs with my own custom classes.
Okey. The problem seems to be that the method PrintTest is static. If i make it non-static it works, but how do I do if I want it to be static?