static CFDictionary CreateImportOptions(CFString password, ImportOptions options = null) { if (options == null) { return(CFDictionary.FromObjectAndKey(password.Handle, ImportExportPassphase.Handle)); } var items = new List <Tuple <IntPtr, IntPtr> > (); items.Add(new Tuple <IntPtr, IntPtr> (ImportExportPassphase.Handle, password.Handle)); #if !MONOTOUCH if (options.KeyChain != null) { items.Add(new Tuple <IntPtr, IntPtr> (ImportExportKeychain.Handle, options.KeyChain.Handle)); } if (options.Access != null) { items.Add(new Tuple <IntPtr, IntPtr> (ImportExportAccess.Handle, options.Access.Handle)); } #endif return(CFDictionary.FromKeysAndObjects(items)); }