My Project
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
IniParser.Model.SectionData Class Reference

Information associated to a section in a INI File Includes both the value and the comments associated to the key. More...

Inheritance diagram for IniParser.Model.SectionData:

Public Member Functions

 SectionData (string sectionName)
 Initializes a new instance of the SectionData class.
 
 SectionData (SectionData ori)
 Initializes a new instance of the SectionData class from a previous instance of SectionData.
 
void ClearComments ()
 Deletes all comments in this section and key/value pairs.
 
void ClearKeyData ()
 Deletes all the key-value pairs in this section.
 
void Merge (SectionData toMergeSection)
 Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended.
 
object Clone ()
 Creates a new object that is a copy of the current instance.
 

Properties

string SectionName [get, set]
 Gets or sets the name of the section.
 
List< string > LeadingComments [get, set]
 Gets or sets the comment list associated to this section.
 
List< string > Comments [get]
 Gets or sets the comment list associated to this section.
 
List< string > TrailingComments [get, set]
 Gets or sets the comment list associated to this section.
 
KeyDataCollection Keys [get, set]
 Gets or sets the keys associated to this section.
 

Detailed Description

Information associated to a section in a INI File Includes both the value and the comments associated to the key.

Constructor & Destructor Documentation

◆ SectionData()

IniParser.Model.SectionData.SectionData ( SectionData  ori)
inline

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

Data is deeply copied

Parameters
oriThe instance of the SectionData class used to create the new instance.

Member Function Documentation

◆ Clone()

object IniParser.Model.SectionData.Clone ( )
inline

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

Returns
A new object that is a copy of this instance.

◆ Merge()

void IniParser.Model.SectionData.Merge ( SectionData  toMergeSection)
inline

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.

Parameters
toMergeSection

Property Documentation

◆ Comments

List<string> IniParser.Model.SectionData.Comments
get

Gets or sets the comment list associated to this section.

A list of strings.

◆ Keys

KeyDataCollection IniParser.Model.SectionData.Keys
getset

Gets or sets the keys associated to this section.

A collection of KeyData objects.

◆ LeadingComments

List<string> IniParser.Model.SectionData.LeadingComments
getset

Gets or sets the comment list associated to this section.

A list of strings.

◆ SectionName

string IniParser.Model.SectionData.SectionName
getset

Gets or sets the name of the section.

The name of the section

◆ TrailingComments

List<string> IniParser.Model.SectionData.TrailingComments
getset

Gets or sets the comment list associated to this section.

A list of strings.


The documentation for this class was generated from the following file: