gpt4 book ai didi

.net - 是否可以从 Lua 代码加载 .net dll?

转载 作者:行者123 更新时间:2023-12-02 03:09:21 25 4
gpt4 key购买 nike

我知道如何从 Lua 加载 C 库:

 -- Lua
require("your_dll_name");

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

但是可以从 Lua 加载 .net 库吗?

最佳答案

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.

关于.net - 是否可以从 Lua 代码加载 .net dll?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4375769/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com