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
Mostra file Open project: SergeyTeplyakov/DynamicXml Class Usage Examples

Public Methods

Method 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

Method Description
DynamicXElementReader ( System.Xml.Linq.XElement element ) : System

Method Details

CreateInstance() public static method

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
return dynamic

TryGetMember() public method

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

this() public method

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

this() public method

Indexer that returns subelement by element index
public this ( int idx ) : dynamic
idx int
return dynamic