Class XwaIniFile
Assembly: JeremyAnsel.Xwa.HooksConfig.dll
Syntax
public sealed class XwaIniFile
Constructors
|
Edit this page
View Source
XwaIniFile(string?)
Declaration
public XwaIniFile(string? path)
Parameters
Type |
Name |
Description |
string |
path |
|
|
Edit this page
View Source
XwaIniFile(string?, string?, string?)
Declaration
public XwaIniFile(string? path, string? extension, string? txtExtension)
Parameters
Properties
|
Edit this page
View Source
BasePath
Declaration
public string BasePath { get; }
Property Value
|
Edit this page
View Source
Extension
Declaration
public string Extension { get; }
Property Value
|
Edit this page
View Source
HasLines
Declaration
public bool HasLines { get; }
Property Value
|
Edit this page
View Source
HasLinesOrSettings
Declaration
public bool HasLinesOrSettings { get; }
Property Value
|
Edit this page
View Source
HasSettings
Declaration
public bool HasSettings { get; }
Property Value
|
Edit this page
View Source
HasTxt
Declaration
public bool HasTxt { get; }
Property Value
|
Edit this page
View Source
Sections
Declaration
public IDictionary<string, XwaIniSection> Sections { get; }
Property Value
|
Edit this page
View Source
TxtExtension
Declaration
public string TxtExtension { get; }
Property Value
Methods
|
Edit this page
View Source
ClearSectionLines(string?, bool)
Declaration
public void ClearSectionLines(string? iniKey, bool createSection = false)
Parameters
Type |
Name |
Description |
string |
iniKey |
|
bool |
createSection |
|
|
Edit this page
View Source
CreateSectionIfNotExists(string)
Declaration
public bool CreateSectionIfNotExists(string section)
Parameters
Type |
Name |
Description |
string |
section |
|
Returns
|
Edit this page
View Source
ParseIni()
Declaration
|
Edit this page
View Source
ParseSettings(string?)
Declaration
public void ParseSettings(string? iniKey = null)
Parameters
Type |
Name |
Description |
string |
iniKey |
|
|
Edit this page
View Source
Read(string?, string?, bool)
Declaration
public void Read(string? iniKey, string? txtKey = null, bool parseSettings = false)
Parameters
|
Edit this page
View Source
RetrieveLinesList(string?)
Declaration
public ICollection<string> RetrieveLinesList(string? iniKey)
Parameters
Type |
Name |
Description |
string |
iniKey |
|
Returns
|
Edit this page
View Source
Save(string?)
Declaration
public void Save(string? basePath = null)
Parameters
Type |
Name |
Description |
string |
basePath |
|