C# Class SMAdminTools.Classes.IniFile

Show file Open project: JuJuBoSc/SMAdminTools

Public Methods

Method Description
Flush ( ) : void
GetValue ( string SectionName, string Key, bool DefaultValue ) : bool
GetValue ( string SectionName, string Key, byte DefaultValue ) : byte[]
GetValue ( string SectionName, string Key, double DefaultValue ) : double
GetValue ( string SectionName, string Key, int DefaultValue ) : int
GetValue ( string SectionName, string Key, string DefaultValue ) : string
IniFile ( string FileName ) : System
IniFile ( string FileName, bool Lazy ) : System
Refresh ( ) : void
SetValue ( string SectionName, string Key, bool Value ) : void
SetValue ( string SectionName, string Key, byte Value ) : void
SetValue ( string SectionName, string Key, double Value ) : void
SetValue ( string SectionName, string Key, int Value ) : void
SetValue ( string SectionName, string Key, string Value ) : void

Private Methods

Method Description
DecodeByteArray ( string Value ) : byte[]
EncodeByteArray ( byte Value ) : string
Initialize ( string FileName, bool Lazy ) : void

Method Details

Flush() public method

public Flush ( ) : void
return void

GetValue() public method

public GetValue ( string SectionName, string Key, bool DefaultValue ) : bool
SectionName string
Key string
DefaultValue bool
return bool

GetValue() public method

public GetValue ( string SectionName, string Key, byte DefaultValue ) : byte[]
SectionName string
Key string
DefaultValue byte
return byte[]

GetValue() public method

public GetValue ( string SectionName, string Key, double DefaultValue ) : double
SectionName string
Key string
DefaultValue double
return double

GetValue() public method

public GetValue ( string SectionName, string Key, int DefaultValue ) : int
SectionName string
Key string
DefaultValue int
return int

GetValue() public method

public GetValue ( string SectionName, string Key, string DefaultValue ) : string
SectionName string
Key string
DefaultValue string
return string

IniFile() public method

public IniFile ( string FileName ) : System
FileName string
return System

IniFile() public method

public IniFile ( string FileName, bool Lazy ) : System
FileName string
Lazy bool
return System

Refresh() public method

public Refresh ( ) : void
return void

SetValue() public method

public SetValue ( string SectionName, string Key, bool Value ) : void
SectionName string
Key string
Value bool
return void

SetValue() public method

public SetValue ( string SectionName, string Key, byte Value ) : void
SectionName string
Key string
Value byte
return void

SetValue() public method

public SetValue ( string SectionName, string Key, double Value ) : void
SectionName string
Key string
Value double
return void

SetValue() public method

public SetValue ( string SectionName, string Key, int Value ) : void
SectionName string
Key string
Value int
return void

SetValue() public method

public SetValue ( string SectionName, string Key, string Value ) : void
SectionName string
Key string
Value string
return void