internal unsafe static void ConvertContentsToNative_DateTime(ref DateTimeOffset[] managedArray, IntPtr pNativeHome) { if (managedArray != null) { DateTimeNative *ptr = *(IntPtr *)((void *)pNativeHome); for (int i = 0; i < managedArray.Length; i++) { DateTimeOffsetMarshaler.ConvertToNative(ref managedArray[i], out ptr[i]); } } }
internal static unsafe void ConvertContentsToNative_DateTime(ref DateTimeOffset[] managedArray, IntPtr pNativeHome) { if (managedArray == null) { return; } DateTimeNative *dateTimeNativePtr = (DateTimeNative *)*(IntPtr *)(void *)pNativeHome; for (int index = 0; index < managedArray.Length; ++index) { DateTimeOffsetMarshaler.ConvertToNative(ref managedArray[index], out dateTimeNativePtr[index]); } }