C# Class Fusion.Core.IniParser.Model.SectionData

Information associated to a section in a INI File Includes both the value and the comments associated to the key.
Inheritance: ICloneable
Show file Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
ClearComments ( ) : void

Deletes all comments in this section and key/value pairs

ClearKeyData ( ) : void

Deletes all the key-value pairs in this section.

Clone ( ) : object

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

Merge ( SectionData toMergeSection ) : void

Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended.

Comments are also merged but they are always added, not overwritten.

SectionData ( SectionData ori, IEqualityComparer searchComparer = null ) : System

Initializes a new instance of the SectionData class from a previous instance of SectionData.

Data is deeply copied

SectionData ( string sectionName ) : System
SectionData ( string sectionName, IEqualityComparer searchComparer ) : System

Initializes a new instance of the SectionData class.

Method Details

ClearComments() public method

Deletes all comments in this section and key/value pairs
public ClearComments ( ) : void
return void

ClearKeyData() public method

Deletes all the key-value pairs in this section.
public ClearKeyData ( ) : void
return void

Clone() public method

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

Merge() public method

Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended.
Comments are also merged but they are always added, not overwritten.
public Merge ( SectionData toMergeSection ) : void
toMergeSection SectionData
return void

SectionData() public method

Initializes a new instance of the SectionData class from a previous instance of SectionData.
Data is deeply copied
public SectionData ( SectionData ori, IEqualityComparer searchComparer = null ) : System
ori SectionData /// The instance of the class /// used to create the new instance. ///
searchComparer IEqualityComparer /// Search comparer. ///
return System

SectionData() public method

public SectionData ( string sectionName ) : System
sectionName string
return System

SectionData() public method

Initializes a new instance of the SectionData class.
public SectionData ( string sectionName, IEqualityComparer searchComparer ) : System
sectionName string
searchComparer IEqualityComparer
return System