internal unsafe static void ConvertContentsToManaged_Type(ref Type[] managedArray, IntPtr pNativeHome)
 {
     if (managedArray != null)
     {
         TypeNameNative *ptr = *(IntPtr *)((void *)pNativeHome);
         for (int i = 0; i < managedArray.Length; i++)
         {
             SystemTypeMarshaler.ConvertToManaged(ptr + i, ref managedArray[i]);
         }
     }
 }
Ejemplo n.º 2
0
        internal static unsafe void ConvertContentsToManaged_Type(ref Type[] managedArray, IntPtr pNativeHome)
        {
            if (managedArray == null)
            {
                return;
            }
            TypeNameNative *typeNameNativePtr = (TypeNameNative *)*(IntPtr *)(void *)pNativeHome;

            for (int index = 0; index < managedArray.Length; ++index)
            {
                SystemTypeMarshaler.ConvertToManaged(typeNameNativePtr + index, ref managedArray[index]);
            }
        }