-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntactic sugar for shorthand getters and setters not respected #30
Comments
write
will be
auto property will be convet to field, i think this is better, it is simple and performance. |
Correct and again I'm sorry, the problem only occurs when the code is in a different assembly: Write in HelloLua.csproj/Program.cs:
Write in TestLibrary.csproj:
Compiles to:
and TestLibrary/TestClass.lua:
The line |
oh, i know what you mean, in this part, you must put all you code in one folder, then use the compile command, if you use dll reference, somethings will be different, because the code from dll, may be the true C# code, not lua, future may i will support csproj, like #17 |
Writing:
C#:
public int SomeProp { get; set; }
Will not compile to anything in Lua, whilst the compiler normally makes fields for this purpose.
Workaround is manually making the fields:
C#:
The text was updated successfully, but these errors were encountered: