Information associated to a section in a INI File Includes both the value and the comments associated to the key. [詳解]
公開メンバ関数 | |
SectionData (string sectionName) | |
SectionData (string sectionName, IEqualityComparer< string > searchComparer) | |
Initializes a new instance of the SectionData class. [詳解] | |
SectionData (SectionData ori, IEqualityComparer< string > searchComparer=null) | |
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] |
List< string > | Comments [get] |
Gets or sets the comment list associated to this section. [詳解] | |
List< string > | TrailingComments [get, set] |
KeyDataCollection | Keys [get, set] |
Gets or sets the keys associated to this section. [詳解] | |
非公開変数類 | |
IEqualityComparer< string > | _searchComparer |
List< string > | _leadingComments |
List< string > | _trailingComments = new List<string>() |
KeyDataCollection | _keyDataCollection |
string | _sectionName |
Information associated to a section in a INI File Includes both the value and the comments associated to the key.
IniParser.Model.SectionData.SectionData | ( | string | sectionName | ) |
IniParser.Model.SectionData.SectionData | ( | string | sectionName, |
IEqualityComparer< string > | searchComparer | ||
) |
Initializes a new instance of the SectionData class.
IniParser.Model.SectionData.SectionData | ( | SectionData | ori, |
IEqualityComparer< string > | searchComparer = null |
||
) |
Initializes a new instance of the SectionData class from a previous instance of SectionData.
Data is deeply copied
ori | The instance of the SectionData class used to create the new instance. |
searchComparer | Search comparer. |
void IniParser.Model.SectionData.ClearComments | ( | ) |
Deletes all comments in this section and key/value pairs
void IniParser.Model.SectionData.ClearKeyData | ( | ) |
Deletes all the key-value pairs in this section.
object IniParser.Model.SectionData.Clone | ( | ) |
Creates a new object that is a copy of the current instance.
void IniParser.Model.SectionData.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.
Comments are also merged but they are always added, not overwritten.
toMergeSection |
|
private |
|
private |
|
private |
|
private |
|
private |
|
get |
Gets or sets the comment list associated to this section.
A list of strings.
|
getset |
Gets or sets the keys associated to this section.
A collection of KeyData objects.
|
getset |
|
getset |
Gets or sets the name of the section.
The name of the section
|
getset |