Exemplo n.º 1
0
 private void ThrowExceptionForHelper(IntPtr _this, ref CORINFO_HELPER_DESC throwHelper)
 { throw new NotImplementedException("ThrowExceptionForHelper"); }
Exemplo n.º 2
0
 private CorInfoIsAccessAllowedResult canAccessClass(IntPtr _this, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, ref CORINFO_HELPER_DESC pAccessHelper)
 {
     // TODO: Access check
     return CorInfoIsAccessAllowedResult.CORINFO_ACCESS_ALLOWED;
 }
Exemplo n.º 3
0
 public virtual void ThrowExceptionForHelper_wrapper(IntPtr _this, out IntPtr exception, ref CORINFO_HELPER_DESC throwHelper)
 {
     exception = IntPtr.Zero;
     try
     {
         ThrowExceptionForHelper(ref throwHelper);
         return;
     }
     catch (Exception ex)
     {
         exception = AllocException(ex);
     }
 }
Exemplo n.º 4
0
        public virtual CorInfoIsAccessAllowedResult canAccessClass_wrapper(IntPtr _this, out IntPtr exception, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, ref CORINFO_HELPER_DESC pAccessHelper)
        {
            exception = IntPtr.Zero;
            try
            {
                return canAccessClass(ref pResolvedToken, callerHandle, ref pAccessHelper);

            }
            catch (Exception ex)
            {
                exception = AllocException(ex);
            }
            return (CorInfoIsAccessAllowedResult)0;
        }
Exemplo n.º 5
0
 static void _ThrowExceptionForHelper(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_HELPER_DESC throwHelper)
 {
     var _this = GetThis(thisHandle);
     try
     {
         _this.ThrowExceptionForHelper(ref throwHelper);
     }
     catch (Exception ex)
     {
         *ppException = _this.AllocException(ex);
     }
 }
Exemplo n.º 6
0
 static CorInfoIsAccessAllowedResult _canAccessClass(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, ref CORINFO_HELPER_DESC pAccessHelper)
 {
     var _this = GetThis(thisHandle);
     try
     {
         return _this.canAccessClass(ref pResolvedToken, callerHandle, ref pAccessHelper);
     }
     catch (Exception ex)
     {
         *ppException = _this.AllocException(ex);
         return default(CorInfoIsAccessAllowedResult);
     }
 }