C# Class Innovatian.Configuration.IniConfigurationSource

Inheritance: AbstractFileConfigurationSource
Mostra file 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.

IniConfigurationSource ( ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data, string comment, string delimiter ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data, string comment, string delimiter, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

ToString ( ) : string

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

Protected Methods

Method Description
Load ( string fileName ) : void

Loads the current instance from the given file.

Private Methods

Method Description
GetFileSections ( string data ) : List
GetSection ( string sectionData ) : IConfigurationSection
GetSection ( IConfigurationSection section ) : string
GetSections ( IEnumerable sectionData ) : IEnumerable
GetSections ( ) : IEnumerable
Parse ( string data ) : void
ReadFile ( string fileName ) : string

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

IniConfigurationSource() public method

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

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo ) : System
fileInfo System.IO.FileInfo The file to load.
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo, bool singleLineComments ) : System
fileInfo System.IO.FileInfo The file to load.
singleLineComments bool Whether comments must appear on a line of their own
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter ) : System
fileInfo System.IO.FileInfo The file to load.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter, bool singleLineComments ) : System
fileInfo System.IO.FileInfo The file to load.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
singleLineComments bool Whether comments must appear on a line of their own
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data ) : System
data string The data.
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data, bool singleLineComments ) : System
data string The data.
singleLineComments bool Whether comments must appear on a line of their own
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data, string comment, string delimiter ) : System
data string The data.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
return System

IniConfigurationSource() public method

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data, string comment, string delimiter, bool singleLineComments ) : System
data string The data.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
singleLineComments bool Whether comments must appear on a line of their own
return System

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

ToString() public method

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