开发者

What is XDocument? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_C百科 Closed 10 years ago.

I am using linq to xml.

In this we load xml file as XDocument.Load("filename.xml").

What is this XDocument?


XDocument is a .NET class which represents an XML Document in memory but with specific support for Linq. It is part of the System.Xml.Linq namespace. See msdn.


XDocument is a class representing an XML document, providing LINQ-friendly behaviors and approaches.

It's System.Xml.XmlDocument equivalent for the LINQ era.


In your case XDocument is a class which allows you to call the static method Load.
This Load method returns an instance of XDocument.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜