public CFDictionary(IntPtr[] keys, IntPtr[] values) { CFDictionaryKeyCallBacks kcall = new CFDictionaryKeyCallBacks(); CFDictionaryValueCallBacks vcall = new CFDictionaryValueCallBacks(); base.typeRef = CFDictionaryCreate(IntPtr.Zero, keys, values, keys.Length, ref kcall, ref vcall); }
unsafe public CFDictionary(string[] keys,IntPtr[] values) { IntPtr[] keyz = new IntPtr[keys.Length]; for (int i = 0; i < keys.Length; i++) { keyz[i] = new CFString(keys[i]); } CFDictionaryKeyCallBacks kcall = new CFDictionaryKeyCallBacks(); CFDictionaryValueCallBacks vcall = new CFDictionaryValueCallBacks(); base.typeRef = CFLibrary.CFDictionaryCreate(IntPtr.Zero,keyz,values,keys.Length,ref kcall,ref vcall); }
unsafe public CFDictionary(string[] keys, IntPtr[] values) { IntPtr[] keyz = new IntPtr[keys.Length]; for (int i = 0; i < keys.Length; i++) { keyz[i] = new CFString(keys[i]); } CFDictionaryKeyCallBacks kcall = new CFDictionaryKeyCallBacks(); CFDictionaryValueCallBacks vcall = new CFDictionaryValueCallBacks(); base.typeRef = CFLibrary.CFDictionaryCreate(IntPtr.Zero, keyz, values, keys.Length, ref kcall, ref vcall); }
public CFDictionary(IntPtr[] keys,IntPtr[] values) { CFDictionaryKeyCallBacks kcall = new CFDictionaryKeyCallBacks(); CFDictionaryValueCallBacks vcall = new CFDictionaryValueCallBacks(); base.typeRef = CFDictionaryCreate(IntPtr.Zero,keys,values,keys.Length,ref kcall,ref vcall); }