Does the __instance field allows me to access private variables? #539
Replies: 1 comment
-
Sorry but GitHub issues are used for bugs and improvement suggestions. For usage discussions please use the official discord server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to https://harmony.pardeike.net/articles/patching-injections.html#common-injected-values if I'm patching a instance method I can get the instance of it by changing the first argument to __instance. In my scenario I need the instance to access and modify some variables in the original class, which includes some private ones. Do I need to use reflect to manually get those variables or is this __instance already made them accessible?
Beta Was this translation helpful? Give feedback.
All reactions