相关疑难解决方法(0)

IList <T>到IQueryable <T>

我有一个List,我想将它包装成IQueryable.

这可能吗?

linq-to-objects iqueryable

68
推荐指数
2
解决办法
2万
查看次数

C# - 如何将json字符串转换为类

如何将我的json-string转换为class

这是我的json

{"$ id":"1","结果":{"$ id":"2","dateTime":23821964,"list":[{"$ id":"3","UserId":302 ,"UID":"302_UID","标题":"شیدکو","发件人":"شیدکو","答案":"","评论":"测试2","ProductTitle":null,"CommentId" :77,"Logo":" http://www.domain.com/Commercial/User/302/Logo/tmpF0BF.jpg ","日期":24302057,"AnswerDate": - 2136361683,"AnswerEdit":false, "CommentEdit":false,"ForfeitCount":0,"RewardCount":0,"ThisCountReport":2,"Reported":[{"$ id":"4","BlockerId":355,"Title":" محتوایغیراخلاقی","Date": - 19527396,"ForfeitCount":0,"RewardCount":0},{"$ id":"5","BlockerId":355,"Title":"محتوایغیرمرتبط" ,"日期": - 19527382,"ForfeitCount":0,"RewardCount":0}],"宝石":0},{"$ id":"6","UserId":302,"UID":" 302_UID","标题":"شیدکو","发件人":"شیدکو","答案":"","评论":"测试2","ProductTitle":null,"CommentId":77,"Logo" :" http://www.www.domain.com/Commercial/User/302/Logo/tmpF0BF.jpg ","日期" :24302057,"AnswerDate": - 21363661683,"AnswerEdit":false,"CommentEdit":false

{
    "$id": "1",
    "Result": {
        "$id": "2",
        "dateTime": 23821964,
        "list": [{
            "$id": "3",
            "UserId": 302,
            "UID": "302_UID",
            "Title": "?????",
            "Sender": "?????",
            "Answer": "",
            "Comment": "test 2",
            "ProductTitle": null,
            "CommentId": 77,
            "Logo": "http://example.com/Commercial/User/302/Logo/tmpF0BF.jpg",
            "Date": 24302057,
            "AnswerDate": -2123661683,
            "AnswerEdit": false,
            "CommentEdit": false,
            "ForfeitCount": 0,
            "RewardCount": 0,
            "ThisCountReport": 2,
            "Reported": [{
                "$id": "4",
                "BlockerId": …
Run Code Online (Sandbox Code Playgroud)

c# json

0
推荐指数
1
解决办法
7772
查看次数

标签 统计

c# ×1

iqueryable ×1

json ×1

linq-to-objects ×1