public static IntPtr Il2CppObjectBaseToPtrNotNull(Il2CppObjectBase obj)
 {
     return(obj?.Pointer ?? throw new NullReferenceException());
 }
 public static IntPtr Il2CppObjectBaseToPtr(Il2CppObjectBase obj)
 {
     return(obj?.Pointer ?? IntPtr.Zero);
 }