Closed SystemKeeper closed 5 years ago
Just use _denv.myapp.statictest = LuaType.GetType(typeof(MyStaticClass));
.
This is basicly the same like clr.NameSpace.MyStaticClass
in the lua code.
Thank you very much, this is working perfectly. I submitted a PR to add this as an example to the documentation.
NeoLua Version: 1.3.2
Hello,
please consider the follwing static class:
Currently I'm doing something like this:
which is working fine, but I'm wondering if there's a way to do this in the host application? Something like this:
_denv.myapp.statictest = typeof(MyStaticClass);
?Thanks in advance!