Information associated to a section in a INI File Includes both the value and the comments associated to the key.
More...
|
| 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.
|
|
|
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.
|
|
Information associated to a section in a INI File Includes both the value and the comments associated to the key.
◆ 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
-
ori | The instance of the SectionData class used to create the new instance. |
◆ 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
-
◆ Comments
List<string> IniParser.Model.SectionData.Comments |
|
get |
Gets or sets the comment list associated to this section.
A list of strings.
◆ Keys
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:
- C:/Transhuman/S2/Assets/Plugins/AutoConfig/IniFileParser/Model/SectionData.cs