Description
When attempting to use a method or class with a type parameter T that's constrained to an enum (in Il2CppInterop's case, generated as where T : Il2CppSystem.Enum) you are unable to do so as IL2CPP enums are generated as managed ones, which fail the type check.
Potential Fix
Remap all Il2CppSystem.Enum generic constraints to System.Enum
Description
When attempting to use a method or class with a type parameter
Tthat's constrained to an enum (in Il2CppInterop's case, generated aswhere T : Il2CppSystem.Enum) you are unable to do so as IL2CPP enums are generated as managed ones, which fail the type check.Potential Fix
Remap all
Il2CppSystem.Enumgeneric constraints toSystem.Enum