C# and Reading Large XML Files

后端 未结 4 1590
暗喜
暗喜 2020-12-16 02:10

I know, I know this has been done to death; Im just posting a question to see if this solution is still relevant since now we have .NET 4 and newer

This link explain

4条回答
  •  孤城傲影
    2020-12-16 02:40

    The answer to this question hasn't changed in .NET 4 - for best performance you should still be using XmlReader as it streams the document instead of loading the full thing into memory.

    The code you refer to uses XmlReader for the actual querying so should be reasonably quick on large documents.

提交回复
热议问题