|
|
| SectionDataCollection () |
| | Initializes a new instance of the SectionDataCollection class.
|
| |
| | SectionDataCollection (SectionDataCollection ori) |
| | Initializes a new instance of the SectionDataCollection class from a previous instance of SectionDataCollection.
|
| |
| bool | AddSection (string keyName) |
| | Creates a new section with empty data.
|
| |
| void | Add (SectionData data) |
| | Adds a new SectionData instance to the collection.
|
| |
|
void | Clear () |
| | Removes all entries from this collection.
|
| |
| bool | ContainsSection (string keyName) |
| | Gets if a section with a specified name exists in the collection.
|
| |
| SectionData | GetSectionData (string sectionName) |
| | Returns the section data from a specify section given its name.
|
| |
|
void | Merge (SectionDataCollection sectionsToMerge) |
| |
| void | SetSectionData (string sectionName, SectionData data) |
| | Sets the section data for given a section name.
|
| |
| bool | RemoveSection (string keyName) |
| |
| IEnumerator< SectionData > | GetEnumerator () |
| | Returns an enumerator that iterates through the collection.
|
| |
| object | Clone () |
| | Creates a new object that is a copy of the current instance.
|
| |
Represents a collection of SectionData.
| bool IniParser.Model.SectionDataCollection.AddSection |
( |
string |
keyName | ) |
|
|
inline |
Creates a new section with empty data.
If a section with the same name exists, this operation has no effect.
- Parameters
-
| keyName | Name of the section to be created |
<return>true if the a new section with the specified name was added, false otherwise</return>
- Exceptions
-
| ArgumentException | If the section name is not valid. |