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]);
         }
     }
 }
示例#2
0
        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]);
            }
        }
示例#3
0
 internal static object ConvertToManagedBox <K, V>(IntPtr pInsp)
 {
     return((object)KeyValuePairMarshaler.ConvertToManaged <K, V>(pInsp));
 }