The following documentation is borrowed from the luainterface documentation and describes the calling syntax. Examples showed here are just shown as an illustration and cannot be directly run in the lua engine of TailExpert. Use the examples supplied with TailExpert to embed C# methods in your lua scripts for TailExpert. The examples provided with TailExpert do not require you to ‘
’ as the scripting environment of TailExpert already takes care for that.
LuaInterface is a way for lua programs to access the CLR (Common Language Runtime), otherwise known as .NET in the Windows world and Mono on Linux. You can also use LuaInterface to easily add Lua scripting abilities to C# programs, for instance, but that is outside the scope of this tutorial and is discussed fully in the LuaInterface documentation.