Reflection - Trivaxy/Libvaxy GitHub Wiki
Libvaxy offers a comprehensive Reflection
class that aims to make C# Reflection easy and pain-free, and by default makes it work with other mods so you can expose their types, methods, etc.
The documentation for all of the methods Reflection
provides are included as Visual Studio summaries. Look in this code file to view documentation.
One thing to note, using any of the following methods will make Libvaxy automatically cache reflection info for subsequent speedups:
GetInstanceField
GetStaticField
SetInstanceField
SetStaticField
GetInstanceProperty
GetStaticProperty
SetInstanceProperty
SetStaticProperty
InvokeInstanceMethod
InvokeStaticMethod
InvokeConstructor
If you need to get or set fields/invoke methods extremely fast and cannot afford to have reflection slow you down, take a look at Libvaxy's FieldGet, FieldSet and MethodInvoker.