LitJson toObject方法重写

    技术2025-12-26  4

     string req = HttpUtility.UrlDecode(thisContext.Request.QueryString["CookieJdConsignee"]); Consignee con = LitJson.JsonMapper.ToObject<Consignee>(req);

    使用泛型 反射 实体属性,去掉多余属性!

    最新回复(0)