Like I suggested on https://github.com/yanghuan/CSharp.lua/issues/422, automatically run the decompiler to decompile to C# then translate to Lua.
Activity
Drake53 commentedon Apr 24, 2023
In my fork I added the option to give a .csproj file as input, then its package references will be automatically decompiled.
yanghuan commentedon Apr 25, 2023
#422
2dpdlja496or43iq commentedon Apr 29, 2023
What if I don't have any .csproj and simply want to use a .NET DLL?
Drake53 commentedon Apr 30, 2023
Then you'll have to decompile it yourself.
In my fork I use the following library for this: https://github.com/icsharpcode/ILSpy
I implemented the decompiler at the following location: https://github.com/Drake53/CSharp.lua/blob/master/CSharp.lua/LuaSyntaxGeneratorFactory.cs#L132
At this point I already extracted the .dll's from the nuget packages so it should be easy to adjust this code for your own needs.