Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
2e203153
Commit
2e203153
authored
Mar 11, 2013
by
Vinicius Jarina
Browse files
Update README.md
parent
7b83898f
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2e203153
...
...
@@ -7,7 +7,7 @@ NLua is a fork of project LuaInterface (from Fábio Mascarenhas/Craig Presti).
NLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.
Linux:
[

](https://travis-ci.org/NLua/NLua)
Linux:
[

](https://travis-ci.org/NLua/NLua)
OSX :
[

](http://jenkins-nlua.sytes.net:8080/job/NLua/)
...
...
@@ -15,21 +15,29 @@ iOS: [)
{
object
[]
res
=
lua
.
DoString
(
"a=2\nreturn a,3"
);
Console
.
WriteLine
(
"a="
+
res
[
0
]+
", b="
+
res
[
1
]);
}
```
string
url
=
@"http://raw.github.com/NLua/NLua/master/README.md"
;
string
script
=
@"
luanet.load_assembly ('System.dll')
WebClient = luanet.import_type ('System.Net.WebClient')
local client = WebClient ()
```
csharp
using
(
Lua
lua
=
new
Lua
())
{
object
[]
res
=
lua
.
DoString
(
"a=2\nreturn a,3"
);
Console
.
WriteLine
(
"a="
+
res
[
0
]+
", b="
+
res
[
1
]);
}
```
local ret = client:DownloadString (url);
return ret;
"
;
using
(
Lua
lua
=
new
Lua
())
{
lua
[
"url"
]
=
url
;
var
returns
=
lua
.
DoString
(
script
);
Console
.
WriteLine
(
returns
);
}
```
LuaInterface 2.0.4
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment