C# Class DynamicXml.DynamicXElementReader

"Dynamic wrapper" around XElement for reading xml content dynamically
This class intended only for reading operations, i.e. we can't modify underlying XElement with this class. If you want also modify underlying element or build xml data from scratch you should use DynamicXElementWriter.
Inheritance: DynamicXElementBase
Afficher le fichier Open project: SergeyTeplyakov/DynamicXml Class Usage Examples

Méthodes publiques

Méthode Description
CreateInstance ( System.Xml.Linq.XElement element ) : dynamic

Factory made intended usage more clear. We "should" use object of this class dynamically.

TryGetMember ( GetMemberBinder binder, object &result ) : bool

This method called during access to underlying subelement

this ( System.Xml.Linq.XName name ) : dynamic

Indexer that returns XAttribute wrapper by XNode

this ( int idx ) : dynamic

Indexer that returns subelement by element index

Private Methods

Méthode Description
DynamicXElementReader ( System.Xml.Linq.XElement element ) : System

Method Details

CreateInstance() public static méthode

Factory made intended usage more clear. We "should" use object of this class dynamically.
public static CreateInstance ( System.Xml.Linq.XElement element ) : dynamic
element System.Xml.Linq.XElement
Résultat dynamic

TryGetMember() public méthode

This method called during access to underlying subelement
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder
result object
Résultat bool

this() public méthode

Indexer that returns XAttribute wrapper by XNode
public this ( System.Xml.Linq.XName name ) : dynamic
name System.Xml.Linq.XName
Résultat dynamic

this() public méthode

Indexer that returns subelement by element index
public this ( int idx ) : dynamic
idx int
Résultat dynamic