internal unsafe static void ConvertContentsToNative_KeyValuePair <K, V>(ref KeyValuePair <K, V>[] managedArray, IntPtr pNativeHome) { if (managedArray != null) { IntPtr *ptr = *(IntPtr *)((void *)pNativeHome); for (int i = 0; i < managedArray.Length; i++) { ptr[i] = KeyValuePairMarshaler.ConvertToNative <K, V>(ref managedArray[i]); } } }
internal static unsafe void ConvertContentsToNative_KeyValuePair <K, V>(ref KeyValuePair <K, V>[] managedArray, IntPtr pNativeHome) { if (managedArray == null) { return; } IntPtr *numPtr = (IntPtr *)*(IntPtr *)(void *)pNativeHome; for (int index = 0; index < managedArray.Length; ++index) { numPtr[index] = KeyValuePairMarshaler.ConvertToNative <K, V>(ref managedArray[index]); } }