Property | Type | Description | |
---|---|---|---|
GetErrorMessage | string | ||
IsCommentOrBlank | bool | ||
IsProperty | bool | ||
IsSection | bool | ||
SeekProperty | bool | ||
SeekSection | bool | ||
TryParseProperty | bool | ||
TryParseSection | bool | ||
TrySeekSection | bool | ||
TrySeekSection | bool | ||
Validate | void |
Method | Description | |
---|---|---|
DeleteSection ( string sectionName ) : void |
If the section exists, delete it from the INI file.
|
|
EditSection ( string sectionName, string>.List |
Update the section with the properties given. If the section doesn't exist, it will be appended to the file. -Any properties that do exist in the section will be updated. -A null value for a property denotes that it should be deleted from the section -If any properties don't exist they will be appended to the end of the section in the same order they appear in the list.
|
|
EnsureSectionExists ( string sectionName ) : void |
Check if the section exists. If not, append it to the end of the file.
|
|
IniFile ( string filePath ) : System |
Construct a new IniFile.
|
|
ListSectionNames ( ) : HashSet |
||
Persist ( ) : void |
Persist the changes to this INI file to disk.
|
|
SectionExists ( string sectionName ) : bool |
Determine if a section exists in the INI file.
|
|
ToString ( ) : string | ||
TryGetSection ( |
Return the properties for the section if it exists.
|
|
TryGetSection ( |
Return the properties for the section if it exists.
|
|
TryGetSection ( string sectionName, string>.Dictionary |
Return the properties for the section if it exists.
|
Method | Description | |
---|---|---|
GetErrorMessage ( int lineNumber ) : string | ||
IsCommentOrBlank ( string line ) : bool | ||
IsProperty ( string line ) : bool | ||
IsSection ( string line ) : bool | ||
SeekProperty ( int &lineNumber, string &propertyName, string &propertyValue ) : bool | ||
SeekSection ( int &lineNumber, string §ionName ) : bool | ||
TryParseProperty ( string line, string &propertyName, string &propertyValue ) : bool | ||
TryParseSection ( string line, string §ionName ) : bool | ||
TrySeekSection ( |
||
TrySeekSection ( String sectionName, int &lineNumber ) : bool | ||
Validate ( ) : void |
public DeleteSection ( string sectionName ) : void | ||
sectionName | string | section to delete |
return | void |
public EditSection ( string sectionName, string>.List |
||
sectionName | string | name of the section to operate on |
properties | string>.List | ordered list of properties to add/update/delete |
return | void |
public EnsureSectionExists ( string sectionName ) : void | ||
sectionName | string | section to ensure exists |
return | void |
public IniFile ( string filePath ) : System | ||
filePath | string | path of the IniFile |
return | System |
public SectionExists ( string sectionName ) : bool | ||
sectionName | string | name of section to look for |
return | bool |
public TryGetSection ( |
||
sectionNameRegex | Regex to match name of section to get | |
properties | string>.Dictionary | properties contained in the section |
return | bool |
public TryGetSection ( |
||
sectionNameRegex | Regex to match name of section to get | |
sectionName | string | name of section if regex matches |
properties | string>.Dictionary | properties contained in the section |
return | bool |
public TryGetSection ( string sectionName, string>.Dictionary |
||
sectionName | string | name of section to get |
properties | string>.Dictionary | properties contained in the section |
return | bool |