我该如何反序列化的单声道JSON字符串?我该、字符串、单声道、序列化

2023-09-03 01:57:56 作者:江山偏冷

我如何反序列化在C#中的JSON字符串(单声道)?

How can I deserialize a JSON string in C# (Mono)?

有没有关于如何安装它的JSON库和说明?我使用的Fedora 14。

Is there a JSON library and instructions on how to install it? I'm using fedora 14.

推荐答案

我们不使用JSON序列化的合同 - 而不是我们使用 JSON。 NET 。它应该具有单声道工作了。 你不需要安装组件,只需添加一个引用,并提供其与最终的包!

we are not utilizing json contract serializer - instead we use Json.NET. it should work with mono too. you don't need to install the assembly, just add a reference and supply it with your final package!

编辑: 如何添加一个参考?虽然我不是一个单devlop - 呃......摘自here:

how to add a reference? though i'm not a mono-devlop-er ... taken from here:

参考 - >编辑参考 - > .NET   大会 - >浏览文件和放大器;选择它

References -> Edit References -> .NET Assembly -> Browse to file & select it

否则:哎,正好碰到 F1