Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to load .net dll from Lua code?

Tags:

.net

dll

lua

I know how to load a C library from Lua:

 -- Lua
 require("your_dll_name");

 // C
 extern "C" __declspec(dllexport) LUALIB_API int luaopen_your_dll_name(lua_State *L) {...}

But is it possible to load .net libraries from Lua?

like image 393
sibvic Avatar asked Nov 05 '22 05:11

sibvic


1 Answers

LuaInterface is a library for integration between the Lua language and Microsoft .NET platform's Common Language Runtime (CLR). Lua scripts can use it to instantiate CLR objects, access properties, call methods, and even handle events with Lua functions.

like image 191
gwell Avatar answered Nov 09 '22 12:11

gwell