C# Class AmazedSaint.Elastic.DynamicExtensions

Extension methods for our ElasticObject. See http://amazedsaint.blogspot.com/2010/02/introducing-elasticobject-for-net-40.html for details
显示文件 Open project: amazedsaint/ElasticObject

Public Methods

Method Description
ElasticFromXElement ( System.Xml.Linq.XElement el ) : ElasticObject

Build an expando from an XElement

ToElastic ( this e ) : dynamic

Converts an XElement to the expando

ToXElement ( this e ) : System.Xml.Linq.XElement

Converts an expando to XElement

XElementFromElastic ( ElasticObject elastic, System.Xml.Linq.XNamespace nameSpace = null ) : System.Xml.Linq.XElement

Returns an XElement from an ElasticObject

Method Details

ElasticFromXElement() public static method

Build an expando from an XElement
public static ElasticFromXElement ( System.Xml.Linq.XElement el ) : ElasticObject
el System.Xml.Linq.XElement
return AmazedSaint.Elastic.Lib.ElasticObject

ToElastic() public static method

Converts an XElement to the expando
public static ToElastic ( this e ) : dynamic
e this
return dynamic

ToXElement() public static method

Converts an expando to XElement
public static ToXElement ( this e ) : System.Xml.Linq.XElement
e this
return System.Xml.Linq.XElement

XElementFromElastic() public static method

Returns an XElement from an ElasticObject
public static XElementFromElastic ( ElasticObject elastic, System.Xml.Linq.XNamespace nameSpace = null ) : System.Xml.Linq.XElement
elastic AmazedSaint.Elastic.Lib.ElasticObject
nameSpace System.Xml.Linq.XNamespace
return System.Xml.Linq.XElement