Tencent / xLua

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
Other
9.43k stars 2.46k forks source link

请问Lua中能调用c#类中拥有多个索引值索引器吗? #1154

Open sillsun opened 3 months ago

sillsun commented 3 months ago

public class TestClass { public string this[int x,int y] { get { return x + "," + y; } set ; } }

请问能够在Lua中直接使用吗?如果可以应该怎样做? 如果一个索引值是没问题,但是多个索引值貌似就不行了。