Revision Difference
From_Lua_to_CSharp#528897
<cat>Dev.Intro</cat>
<title>From Lua to C#</title>
<warning>This article is a work in progress. Please consider not making any changes to it at the moment.</warning>
# What is this guide
This is mean to give an idea of the major differences between C# and Lua
# Comments
```lua
-- Lua comments start with two minus signs
--[[
Lua multiline comment
example
--]]
-- Lua comments start with two minus signs
```
```
// csharp comments start with two slashes, like most other languages
/*
csharp multiline comment
example
*/
```
# Global Variables
```lua
-- you can define globals anywhere
globalVar = 100
```
```csharp
public class MyClass
{
// globals need to be in a class
public static int GlobalVar = 100;
}
```