Open kirsysuv opened 2 weeks ago
I see. I'd workaround this limitation as follows:
ClassA instance = ...;
DebugLogConsole.AddCommand("name", "desc", (string parameter1, int parameter2) => instance.test22(parameter1, parameter2));
In the future, I may add better support similar to yours but at the moment, I'm unable to.
Wow! This workaround is great! Thank you for the reply.
I want to add some extension method such as
I tried to use a fixed parameter name "self" to identify the "this" parameter in extension method. And some other workarounds to make extension method usable. My implementation is not well organized and tested.
It would be great if this feature is implemented.
Here is my workaroud