C# Class IniParser.Model.Configuration.IniParserConfiguration

Defines data for a Parser configuration object.
Inheritance: ICloneable
Show file Open project: rickyah/ini-parser Class Usage Examples

Private Properties

Property Type Description
ICloneable object
RecreateSectionRegex void

Public Methods

Method Description
Clone ( ) : IniParserConfiguration

Creates a new object that is a copy of the current instance.

Equals ( object obj ) : bool
GetHashCode ( ) : int
IniParserConfiguration ( ) : System

Default values used if an instance of IniDataParser is created without specifying a configuration.

By default the various delimiters for the data are setted:

';' for one-line comments

'[' ']' for delimiting a section

'=' for linking key / value pairs

An example of well formed data with the default values:

;section comment
[section] ; section comment

; key comment
key = value ;key comment

;key2 comment
key2 = value

IniParserConfiguration ( IniParserConfiguration ori ) : System

Copy ctor.

Private Methods

Method Description
ICloneable ( ) : object
RecreateSectionRegex ( char value ) : void

Method Details

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : IniParserConfiguration
return IniParserConfiguration

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IniParserConfiguration() public method

Default values used if an instance of IniDataParser is created without specifying a configuration.
By default the various delimiters for the data are setted:

';' for one-line comments

'[' ']' for delimiting a section

'=' for linking key / value pairs

An example of well formed data with the default values:

;section comment
[section] ; section comment

; key comment
key = value ;key comment

;key2 comment
key2 = value

public IniParserConfiguration ( ) : System
return System

IniParserConfiguration() public method

Copy ctor.
public IniParserConfiguration ( IniParserConfiguration ori ) : System
ori IniParserConfiguration /// Original instance to be copied. ///
return System