internal unsafe static void ConvertContentsToManaged_DateTime(ref DateTimeOffset[] managedArray, IntPtr pNativeHome)
 {
     if (managedArray != null)
     {
         DateTimeNative *ptr = *(IntPtr *)((void *)pNativeHome);
         for (int i = 0; i < managedArray.Length; i++)
         {
             DateTimeOffsetMarshaler.ConvertToManaged(out managedArray[i], ref ptr[i]);
         }
     }
 }
Ejemplo n.º 2
0
        internal static unsafe void ConvertContentsToManaged_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.ConvertToManaged(out managedArray[index], ref dateTimeNativePtr[index]);
            }
        }