You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using System;
namespace Test {
public class Program {
public static void Main(string[] args) {
#if __CSharpLua__
/*
[[
local i = "hello, word"
print(i)
]]*/
#else
Console.WriteLine("hello, word");
#endif
//insert lua code
/*
[[
print('insert lua code')
]]
*/
}
}
}
output
-- Generated by CSharp.lua Compiler 1.1.0
local System = System
System.namespace("Test", function (namespace)
namespace.class("Program", function (namespace)
local Main
Main = function (args)
local i = "hello, word"
print(i)
--insert lua code
print('insert lua code')
end
return {
Main = Main
}
end)
end)
Like
or better a syntax that can return a value
The text was updated successfully, but these errors were encountered: