Example #1
0
        /// <summary>
        /// 自定义反序列化时间值
        /// </summary>
        /// <param name="jsonDeSerializer"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public virtual bool DeSerialize(JsonDeSerializer jsonDeSerializer, ref DateTime value)
        {
            string stringBuffer = jsonDeSerializer.GetQuoteStringBuffer();

            return(stringBuffer.Length != 0 && DateTime.TryParse(stringBuffer, out value));
        }