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
Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

ClearKeyData() public méthode

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

Clone() public méthode

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

Merge() public méthode

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
Résultat void

SectionData() public méthode

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. ///
Résultat System

SectionData() public méthode

public SectionData ( string sectionName ) : System
sectionName string
Résultat System

SectionData() public méthode

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