예제 #1
0
        public double GetNumberValue(string key)
        {
            double retval;
            IntPtr cfnum = CF.CFDictionaryGetValue(Ref,
                                                   CF.CFSTR(key));

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

            return(retval);
        }
예제 #2
0
        public        IntPtr this[int index]
        {
            get
            {
                if (index >= Count || index < 0)
                {
                    throw new IndexOutOfRangeException();
                }

                return(CF.CFArrayGetValueAtIndex(Ref, index));
            }
        }