示例#1
0
        internal static bool Get(this JsonData data, ref double val)
        {
            bool ret = false;

            if (null != data && (data.IsDouble || data.IsInt || data.IsLong))
            {
                ret = true;
                val = data.AsDouble();
            }
            return(ret);
        }
示例#2
0
        public static bool Get(this JsonData data, ref double val)
        {
            bool ret = false;

            if (data.IsDouble || data.IsInt || data.IsLong)
            {
                ret = true;
                val = data.AsDouble();
            }
            return(ret);
        }
示例#3
0
 internal static float AsFloat(this JsonData data)
 {
     return((float)data.AsDouble());
 }