问题标签 [lua.net]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
.net - Lua 用于在 .NET 中通过 XML/Yaml/INI 进行配置?
我在 Python 和 .NET C# 应用程序中使用 XML、INI 和 yaml 文件进行配置。
我最近研究了lua语言并尝试在.NET平台上实现它。我发现用于配置的 Lua 似乎更简洁易读。此外,它确实提供了脚本功能。
听说 Lua 源码库很少,而且只使用 Table 数据结构,我可以在 .NET 应用程序中使用 Lua 语言作为我的配置文件吗?这样,我可以使用 Lua 来定义我的配置,添加更多脚本来验证数据,在运行时添加更多钩子。目的是绑定C#和Lua.NET,还有读取配置信息的选项吗?我看到了使用 XML & Lua 的定义配置文件,Lua 版本比 XML 版本更简洁明了。
c# - How to call Lua functions from .NET
I use the LuaInterface library to run the lua in .net and it works fine. I could access the CLR via lua. But how to call Lua function from C#?