You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
Implementation of that feature will be quite complicated, because it would require to encapsulate those params into additional class structure that would store it inside during Aspect Processing execution and return it afterwards.
Another way is to rework the encapsulation system to amend original method body adding execution start and end calls into that body, however it would require to do this also on return statements, which is also quite hard because it requires to scan whole method body for those statements.
The text was updated successfully, but these errors were encountered:
Possible solution
MethodInfo.Invoke uses object[] as parameter container. object[] is an reference type and while executing method it's data is also changed while method has ref and out parameters. The data is not changed if it's modified inside executed method and param is not marked as out/ref. Thanks to this it allows us to move data array from executing encapsulated method to separate variable that is then provided to encapsulator and set parent variables with out/ref basing on that array.
Implementation of that feature will be quite complicated, because it would require to encapsulate those params into additional class structure that would store it inside during Aspect Processing execution and return it afterwards.
Another way is to rework the encapsulation system to amend original method body adding execution start and end calls into that body, however it would require to do this also on return statements, which is also quite hard because it requires to scan whole method body for those statements.
The text was updated successfully, but these errors were encountered: