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
f28dddd2
Unverified
Commit
f28dddd2
authored
Apr 04, 2020
by
Michael Senko
Committed by
GitHub
Apr 04, 2020
Browse files
Update to example code (#365)
* Update README.md Use direct cast to double.
parent
64a0eb83
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
f28dddd2
...
@@ -122,7 +122,7 @@ Retrieving global values:
...
@@ -122,7 +122,7 @@ Retrieving global values:
```
csharp
```
csharp
state
.
DoString
(
"y = 10 + x*(5 + 2)"
);
state
.
DoString
(
"y = 10 + x*(5 + 2)"
);
var
y
=
state
[
"y"
]
as
double
;
// Retrieve the value of y
double
y
=
(
double
)
state
[
"y"
];
// Retrieve the value of y
```
```
Retrieving Lua functions:
Retrieving Lua functions:
...
...
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