大json文件反序列化

时间:2013-06-24 17:17:46

标签: c# json file serialization

public void jsonLoad()
{
    StreamReader xD = new StreamReader("pobrane.txt");
    string costam = xD.ReadToEnd();
    xD.Close();
    Dictionary<string, string> values = JsonConvert.DeserializeObject<Dictionary<string, string>>(costam);
}

在我的代码的最后一行,我收到错误 VerificationException: Operation could destabilize the runtime.

我要打开的文件很大:800KB,37000行代码。有没有办法跳过这个限制?

enter image description here

0 个答案:

没有答案