C# Class Innovatian.Configuration.XmlConfigurationSource

Inheritance: AbstractFileConfigurationSource
Exibir arquivo Open project: idavis/innovatian.configuration Class Usage Examples

Public Methods

Method Description
FromFile ( string fileName ) : IConfigurationSource

Creates a new IConfigurationSource instance from the file specified.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

ToXml ( IConfigurationSection section ) : System.Xml.Linq.XElement

Converts the given IConfigurationSection to an XML representation.

ToXml ( IEnumerable sections ) : string

Converts the given IConfigurationSections to an XML representation.

XmlConfigurationSource ( ) : System

Initializes a new instance of the XmlConfigurationSource class.

XmlConfigurationSource ( string xml ) : System

Initializes a new instance of the XmlConfigurationSource class.

Protected Methods

Method Description
Load ( string fileName ) : void

Loads the current instance from the given file.

Parse ( string xml ) : void

Parses the specified XML.

Process ( System.Xml.Linq.XDocument document ) : void

Processes the specified document.

Method Details

FromFile() public static method

Creates a new IConfigurationSource instance from the file specified.
public static FromFile ( string fileName ) : IConfigurationSource
fileName string /// The file to load. ///
return IConfigurationSource

Load() protected method

Loads the current instance from the given file.
protected Load ( string fileName ) : void
fileName string The name of the file to load into this instance.
return void

Parse() protected method

Parses the specified XML.
protected Parse ( string xml ) : void
xml string The XML.
return void

Process() protected method

Processes the specified document.
protected Process ( System.Xml.Linq.XDocument document ) : void
document System.Xml.Linq.XDocument The document.
return void

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string

ToXml() public static method

Converts the given IConfigurationSection to an XML representation.
public static ToXml ( IConfigurationSection section ) : System.Xml.Linq.XElement
section IConfigurationSection /// The section to convert to XML. ///
return System.Xml.Linq.XElement

ToXml() public static method

Converts the given IConfigurationSections to an XML representation.
public static ToXml ( IEnumerable sections ) : string
sections IEnumerable /// The sections to convert to XML. ///
return string

XmlConfigurationSource() public method

Initializes a new instance of the XmlConfigurationSource class.
public XmlConfigurationSource ( ) : System
return System

XmlConfigurationSource() public method

Initializes a new instance of the XmlConfigurationSource class.
public XmlConfigurationSource ( string xml ) : System
xml string The XML source.
return System