Пример #1
0
        public T TryToObject <T>(string str)
        {
            T obj = default(T);

            try
            {
                obj = FastJson.ToObject <T>(str);
            }
            catch
            {
                return(default(T));
            }
            return(obj);
        }