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]); } } }
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]); } }