C# Class NArrange.Core.Configuration.CodeConfiguration

Code arranger configuration information.
Inheritance: ConfigurationElement
ファイルを表示 Open project: MarcStan/NArrange Class Usage Examples

Private Properties

Property Type Description
CodeConfiguration System
HandleUnknownAttribute void
HandleUnknownElement void
TreeProcess void
Upgrade void
UpgradeProjectExtensions void

Public Methods

Method Description
Clone ( ) : object

Override Clone so that we can force resolution of element references.

Load ( Stream stream ) : CodeConfiguration

Loads a configuration from a stream.

Load ( Stream stream, bool resolveReferences ) : CodeConfiguration

Loads a configuration from a stream.

Load ( string fileName ) : CodeConfiguration

Loads a configuration from the specified file.

Load ( string fileName, bool resolveReferences ) : CodeConfiguration

Loads a configuration from the specified file.

ResolveReferences ( ) : void

Resolves any reference elements in the configuration.

Save ( string fileName ) : void

Saves the configuration to a file.

Protected Methods

Method Description
DoClone ( ) : ConfigurationElement

Creates a clone of this instance.

Private Methods

Method Description
CodeConfiguration ( ) : System

Type initialization.

HandleUnknownAttribute ( object sender, XmlAttributeEventArgs e ) : void

Handler for unknown attributes.

HandleUnknownElement ( object sender, XmlElementEventArgs e ) : void

Handler for unknown elements.

TreeProcess ( ConfigurationElement element, Action actions ) : void

Recurses through the configuration tree and executes actions against each configuration element.

Upgrade ( ) : void

Upgrades the configuration.

UpgradeProjectExtensions ( ) : void

Moves project extensions to the new format.

Method Details

Clone() public method

Override Clone so that we can force resolution of element references.
public Clone ( ) : object
return object

DoClone() protected method

Creates a clone of this instance.
protected DoClone ( ) : ConfigurationElement
return ConfigurationElement

Load() public static method

Loads a configuration from a stream.
public static Load ( Stream stream ) : CodeConfiguration
stream Stream The stream to load the configuration from.
return CodeConfiguration

Load() public static method

Loads a configuration from a stream.
public static Load ( Stream stream, bool resolveReferences ) : CodeConfiguration
stream Stream The sream to load the configuration from.
resolveReferences bool /// Whether or not element references should be resolved. ///
return CodeConfiguration

Load() public static method

Loads a configuration from the specified file.
public static Load ( string fileName ) : CodeConfiguration
fileName string Configuration file name.
return CodeConfiguration

Load() public static method

Loads a configuration from the specified file.
public static Load ( string fileName, bool resolveReferences ) : CodeConfiguration
fileName string Configuration file name.
resolveReferences bool Resolve element references.
return CodeConfiguration

ResolveReferences() public method

Resolves any reference elements in the configuration.
public ResolveReferences ( ) : void
return void

Save() public method

Saves the configuration to a file.
public Save ( string fileName ) : void
fileName string Name of the file.
return void