NLua

码农软件 · 软件分类 · 其他开发相关 · 2019-10-21 21:43:22

软件介绍

NLua 是 Lua 和 .NET 两个领域的连接枢纽。这个项目是由 LuaInterface (from Fábio Mascarenhas/Craig Presti) 改写的。

示例:

 string script = @"

            local s = Scriptable (""My String Parameter"")
            s:DoSomething ()

            print (s.Param1)

            local ret = s:SumOfLengths (""Name"", 10);

            print (tostring(ret))

            Scriptable.Print(""Hello NLua"")

            s.Param3 = 0.5;

            local p2 = tostring(s.Param3)

            print (p2)
            ";

            using (Lua lua = new Lua ()) {

                lua.LoadCLRPackage ();

                lua.DoString (@" import ('NLuaSample') ");

                lua ["gValue"] = "This is a global value"; // You can set a global value.

                var returns = lua.DoString (script);

                Console.WriteLine (returns);
            }

本文地址:https://codercto.com/soft/d/17275.html

Web Standards Creativity

Web Standards Creativity

Andy Budd、Dan Rubin、Jeff Croft、Cameron Adams、Ethan Marcotte、Andy Clarke、Ian Lloyd、Mark Boulton、Rob Weychert、Simon Collison、Derek Featherstone / friends of ED / March 19, 2007 / $49.99

Book Description * Be inspired by 10 web design lessons from 10 of the world's best web designers * Get creative with cutting-edge XHTML, CSS, and DOM scripting techniques * Learn breathtakin......一起来看看 《Web Standards Creativity》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器