C# Class DynamicXml.DynamicXElementBase

Base class for "Dynamic wrapper" around XElement
Now we have two separate implementation for dynamic xml wrapper: one for reading xml and another - for reading and writing. So we have some code common for both of them and this is reasonable to use common base class for both of them.
Inheritance: System.Dynamic.DynamicObject
Mostra file Open project: SergeyTeplyakov/DynamicXml

Protected Properties

Property Type Description
element System.Xml.Linq.XElement

Public Methods

Method Description
Equals ( object obj ) : bool
GetDynamicMemberNames ( ) : IEnumerable
GetHashCode ( ) : int
ToString ( ) : string
TryConvert ( ConvertBinder binder, object &result ) : bool

Converting dynamic XElement wrapper to any other type means converting (or extracting) underlying element.Value

Protected Methods

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

Private Methods

Method Description
HasParent ( ) : bool

Method Details

DynamicXElementBase() protected method

protected DynamicXElementBase ( System.Xml.Linq.XElement element ) : System
element System.Xml.Linq.XElement
return System

Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool

GetDynamicMemberNames() public final method

public final GetDynamicMemberNames ( ) : IEnumerable
return IEnumerable

GetHashCode() public final method

public final GetHashCode ( ) : int
return int

ToString() public final method

public final ToString ( ) : string
return string

TryConvert() public final method

Converting dynamic XElement wrapper to any other type means converting (or extracting) underlying element.Value
public final TryConvert ( ConvertBinder binder, object &result ) : bool
binder System.Dynamic.ConvertBinder
result object
return bool

Property Details

element protected_oe property

protected XElement,System.Xml.Linq element
return System.Xml.Linq.XElement