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
6dc2739d
Commit
6dc2739d
authored
Feb 07, 2017
by
Vinicius Jarina
Committed by
GitHub
Feb 07, 2017
Browse files
Update index.html
Fixed `AssemblyName.exe` => `AssemblyName`
parent
7227ab0e
Changes
1
Show whitespace changes
Inline
Side-by-side
index.html
View file @
6dc2739d
...
@@ -202,7 +202,7 @@ You can use/instantiate any .NET class without any previous registration or anno
...
@@ -202,7 +202,7 @@ You can use/instantiate any .NET class without any previous registration or anno
To do this just use the method
<code>
LoadCLRPackage
</code>
and use the
<code>
import
</code>
function inside your Lua script to load the Assembly.
</p>
To do this just use the method
<code>
LoadCLRPackage
</code>
and use the
<code>
import
</code>
function inside your Lua script to load the Assembly.
</p>
<div
class=
"highlight highlight-csharp"
><pre>
state.LoadCLRPackage ();
<div
class=
"highlight highlight-csharp"
><pre>
state.LoadCLRPackage ();
state.DoString (@
<span
class=
"pl-s1"
><span
class=
"pl-pds"
>
"
</span>
import ('MyAssembly
.exe
', 'MyNamespace')
</span>
state.DoString (@
<span
class=
"pl-s1"
><span
class=
"pl-pds"
>
"
</span>
import ('MyAssembly', 'MyNamespace')
</span>
<span
class=
"pl-s1"
>
import ('System.Web')
<span
class=
"pl-pds"
>
"
</span></span>
);
<span
class=
"pl-s1"
>
import ('System.Web')
<span
class=
"pl-pds"
>
"
</span></span>
);
<span
class=
"pl-c"
>
// import will load any .NET assembly and they will be available inside the Lua context.
</span></pre></div>
<span
class=
"pl-c"
>
// import will load any .NET assembly and they will be available inside the Lua context.
</span></pre></div>
...
...
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