C# Class Innovatian.Configuration.DotNetConfigurationSource

Inheritance: XmlConfigurationSource
Mostrar archivo Open project: idavis/innovatian.configuration Class Usage Examples

Public Methods

Method Description
DotNetConfigurationSource ( ) : System

Initializes a new instance of the DotNetConfigurationSource class.

DotNetConfigurationSource ( string xml ) : System

Initializes a new instance of the DotNetConfigurationSource class.

FromFile ( string fileName ) : IConfigurationSource

Froms the file.

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.

Protected Methods

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

Processes the specified document.

Private Methods

Method Description
CreateConfigurationSection ( string current, string>.IEnumerable items ) : void
GetSections ( System.Xml.Linq.XDocument document ) : IEnumerable
GetSectionsImpl ( System.Xml.Linq.XDocument document ) : IEnumerable
GetSettings ( System.Xml.Linq.XDocument document, string sectionName ) : string>>.IEnumerable

Method Details

DotNetConfigurationSource() public method

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

DotNetConfigurationSource() public method

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

FromFile() public static method

Froms the file.
public static FromFile ( string fileName ) : IConfigurationSource
fileName string Name of the file.
return IConfigurationSource

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