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

Represents all data from an INI file. More...

Inheritance diagram for IniParser.Model.IniData:

Public Member Functions

 IniData ()
 Initializes an empty IniData instance.
 
 IniData (SectionDataCollection sdc)
 Initializes a new IniData instance using a previous SectionDataCollection.
 
 IniData (IniData ori)
 
override string ToString ()
 
virtual string ToString (IIniDataFormatter formatter)
 
object Clone ()
 Creates a new object that is a copy of the current instance.
 
void ClearAllComments ()
 Deletes all comments in all sections and key values.
 
void Merge (IniData toMergeIniData)
 Merges the other iniData into this one by overwriting existing values. Comments get appended.
 

Properties

IIniParserConfiguration Configuration [get, set]
 Configuration used to write an ini file with the proper delimiter characters and data.
 
KeyDataCollection Global [get]
 Global sections. Contains key/value pairs which are not enclosed in any section (i.e. they are defined at the beginning of the file, before any section.
 
KeyDataCollection this[string sectionName] [get]
 Gets the KeyDataCollection instance with the specified section name.
 
SectionDataCollection Sections [get, set]
 Gets or sets all the SectionData for this IniData instance.
 

Detailed Description

Represents all data from an INI file.

Constructor & Destructor Documentation

◆ IniData()

IniParser.Model.IniData.IniData ( SectionDataCollection  sdc)
inline

Initializes a new IniData instance using a previous SectionDataCollection.

Parameters
sdcSectionDataCollection object containing the data with the sections of the file

Member Function Documentation

◆ Clone()

object IniParser.Model.IniData.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.IniData.Merge ( IniData  toMergeIniData)
inline

Merges the other iniData into this one by overwriting existing values. Comments get appended.

Parameters
toMergeIniDataIniData instance to merge into this. If it is null this operation does nothing.

Property Documentation

◆ Configuration

IIniParserConfiguration IniParser.Model.IniData.Configuration
getset

Configuration used to write an ini file with the proper delimiter characters and data.

If the IniData instance was created by a parser, this instance is a copy of the IIniParserConfiguration used by the parser (i.e. different objects instances) If this instance is created programatically without using a parser, this property returns an instance of DefaultIniParserConfiguration


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