示例#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);
        }
        public        IntPtr this[int index] {
            get {
                if (index >= Count || index < 0)
                {
                    throw new IndexOutOfRangeException();
                }

                return(CF.CFArrayGetValueAtIndex(arrayRef, index));
            }
        }
示例#5
0
文件: CF.cs 项目: Zeludon/FEZ
 internal static bool CFNumberGetValue(IntPtr number, CF.CFNumberType theType, double* valuePtr);
示例#6
0
文件: CF.cs 项目: conankzhang/fez
 internal static IntPtr CFSTR(string cStr)
 {
     return(CF.__CFStringMakeConstantString(cStr));
 }