CFDictionaryGetValue() private method

private CFDictionaryGetValue ( IntPtr theDictionary, IntPtr theKey ) : IntPtr
theDictionary System.IntPtr
theKey System.IntPtr
return System.IntPtr
示例#1
0
        public unsafe double GetNumberValue(string key)
        {
            double num;

            CF.CFNumberGetValue(CF.CFDictionaryGetValue(this.dictionaryRef, CF.CFSTR(key)), CF.CFNumberType.kCFNumberDoubleType, &num);
            return(num);
        }
        public unsafe double GetNumberValue(string key)
        {
            double retval;
            IntPtr cfnum = CF.CFDictionaryGetValue(DictRef, CF.CFSTR(key));

            CF.CFNumberGetValue(cfnum, CF.CFNumberType.kCFNumberDoubleType, &retval);
            return(retval);
        }
示例#3
0
        public double GetNumberValue(string key)
        {
            double retval;
            var    cfnum = CF.CFDictionaryGetValue(Ref,
                                                   CF.CFSTR(key));

            CF.CFNumberGetValue(cfnum, CF.CFNumberType.kCFNumberDoubleType, out retval);

            return(retval);
        }