internal unsafe static void ClearNativeContents_Type(IntPtr pNativeHome, int cElements)
        {
            TypeNameNative *ptr = *(IntPtr *)((void *)pNativeHome);

            if (ptr != null)
            {
                for (int i = 0; i < cElements; i++)
                {
                    SystemTypeMarshaler.ClearNative(ptr);
                    ptr++;
                }
            }
        }
Example #2
0
        internal static unsafe void ClearNativeContents_Type(IntPtr pNativeHome, int cElements)
        {
            TypeNameNative *pNativeType = (TypeNameNative *)*(IntPtr *)(void *)pNativeHome;

            if ((IntPtr)pNativeType == IntPtr.Zero)
            {
                return;
            }
            for (int index = 0; index < cElements; ++index)
            {
                SystemTypeMarshaler.ClearNative(pNativeType);
                ++pNativeType;
            }
        }