Пример #1
0
        internal static void Init()
        {
            var handle = Libraries.AddressBook.Handle;

            Organization = Dlfcn.GetNSNumber(handle, "kABPersonKindOrganization");
            Person       = Dlfcn.GetNSNumber(handle, "kABPersonKindPerson");
        }
Пример #2
0
        internal static void Init()
        {
            var handle = Dlfcn.dlopen(Constants.AddressBookLibrary, 0);

            if (handle == IntPtr.Zero)
            {
                return;
            }
            try {
                Organization = Dlfcn.GetNSNumber(handle, "kABPersonKindOrganization");
                Person       = Dlfcn.GetNSNumber(handle, "kABPersonKindPerson");
            }
            finally {
                Dlfcn.dlclose(handle);
            }
        }