I am trying to call a function at a specified memory address in c#, here is how I would go about it in C:
typedef void _do(int i);
auto doActor = (_do*)0xAAAABEEF;
doActor(1);
How do I replicate this behavior in C# if at all possible? Very new to C# all help is appreciated.
More in depth explanation of my situation: I am trying to create a tool that helps me automate certain processes within an executable. I decompiled the assembly of the main API and added my functionality (for the most part) by intercepting network packets/spoofing my own. I do not have control over the client side of things, stored in an obfuscated assembly that I can't de-/recompile. I seldomly need to call one or two functions out of this obfuscated assembly and I found the memory addresses of those relevant functions using a debugger but don't know where to go from here in c#.