How can I do System.Web.Script.Serialization in C#?

前端 未结 1 396
耶瑟儿~
耶瑟儿~ 2021-01-08 00:41

How can I do this in C# modern UI ?

var url = \"http://ajax.googleapis.com/ajax/services/feed/load?q=http%3A%2F%2Fwww.digg.com%2Frss%2Findex.xml&v=1.0\";         


        
相关标签:
1条回答
  • 2021-01-08 01:03

    I found how to make it work.
    I don't know why they did this mess and I don't even understand why but here's the solution: Right click on project and add reference to:

    System.Web.Extensions

    than you can add the reference you need with:

    using System.Web.Script.Serialization;
    

    and this time it will work. (At least this is what I did on .NET framework 3.5)

    0 讨论(0)
提交回复
热议问题