Exemplo n.º 1
0
 internal static void Assert(bool condition, string message)
 {
     if (!condition)
     {
         EH.FallbackFailFast(RhFailFastReason.InternalError, null);
     }
 }
Exemplo n.º 2
0
        internal EEType *GetArrayEEType()
        {
            fixed(EEType *pThis = &this)
            {
                IntPtr pGetArrayEEType = (IntPtr)InternalCalls.RhpGetClasslibFunctionFromEEType(new IntPtr(pThis), ClassLibFunctionId.GetSystemArrayEEType);

                if (pGetArrayEEType != IntPtr.Zero)
                {
                    return((EEType *)CalliIntrinsics.Call <IntPtr>(pGetArrayEEType));
                }
            }

#if PROJECTN
            fixed(EEType *pThis = &this)
            return(InternalCalls.RhpGetArrayBaseType(pThis));
#else
            EH.FallbackFailFast(RhFailFastReason.InternalError, null);
            return(null);
#endif
        }