BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
195 stars 61 forks source link

Improve Cast and PointerToValueGeneric performance #52

Closed js6pak closed 1 year ago

js6pak commented 1 year ago

Use a cached DynamicMethod instead reflection for instantiating il2cpp objects.

image

Cursed Unsafe.Ass are required because there is no way to ignore generic constraints and PointerToValueGeneric can return value types.