コード例 #1
0
        /// <summary>
        /// 把Json转回字典集合
        /// </summary>
        /// <param name="lst">集合</param>
        /// <returns></returns>
        public static List <T> DeSerializeList <T>(string json, IEnumerable <string> propertyMap = null)
            where T : new()
        {
            List <Dictionary <string, object> > dic = _serializer.Deserialize <List <Dictionary <string, object> > >(json);
            List <T> lst = EntitySerializer.DeserializeToList <T>(dic, propertyMap);

            return(lst);
        }