2011-11-19 82 views

回答

1

是的。原因是,當您創建XDocument時,LINQ to XML會解析整個文檔,而XmlReader僅僅是「forward」,因爲它使用流。

Mike Taulty在這個話題上有很棒的博客文章。請參閱here