Skip to content
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

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

Open
sillsun opened this issue Aug 14, 2024 · 0 comments
Open

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

sillsun opened this issue Aug 14, 2024 · 0 comments

Comments

@sillsun
Copy link

sillsun commented Aug 14, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant