internal unsafe static void ConvertContentsToNative_Exception(ref Exception[] managedArray, IntPtr pNativeHome)
 {
     if (managedArray != null)
     {
         int *ptr = *(IntPtr *)((void *)pNativeHome);
         for (int i = 0; i < managedArray.Length; i++)
         {
             ptr[i] = HResultExceptionMarshaler.ConvertToNative(managedArray[i]);
         }
     }
 }
コード例 #2
0
ファイル: 10stubhelpers.cs プロジェクト: wwkkww1983/ZJCredit
        internal static unsafe void ConvertContentsToNative_Exception(ref Exception[] managedArray, IntPtr pNativeHome)
        {
            if (managedArray == null)
            {
                return;
            }
            int *numPtr = (int *)*(IntPtr *)(void *)pNativeHome;

            for (int index = 0; index < managedArray.Length; ++index)
            {
                numPtr[index] = HResultExceptionMarshaler.ConvertToNative(managedArray[index]);
            }
        }