C# Class GameBase.Config.MemIniFile

内存Ini解析
Show file Open project: dream-young-soul/soul Class Usage Examples

Public Methods

Method Description
FindSection ( string SectionName ) : IniSection
LoadFromFile ( string FileName ) : bool
LoadFromStream ( Stream stream ) : void
MemIniFile ( ) : System
ReadValue ( string SectionName, string key, System.DateTime defaultv ) : System.DateTime
ReadValue ( string SectionName, string key, bool defaultv ) : bool
ReadValue ( string SectionName, string key, float defaultv ) : float
ReadValue ( string SectionName, string key, int defaultv ) : int
ReadValue ( string SectionName, string key, string defaultv ) : string
SaveToFile ( string FileName ) : void
SaveToStream ( Stream stream ) : void
WriteValue ( string SectionName, string key, System.DateTime value ) : IniSection
WriteValue ( string SectionName, string key, bool value ) : IniSection
WriteValue ( string SectionName, string key, float value ) : IniSection
WriteValue ( string SectionName, string key, int value ) : IniSection
WriteValue ( string SectionName, string key, string value ) : IniSection

Private Methods

Method Description
SectionExists ( string SectionName ) : bool

Method Details

FindSection() public method

public FindSection ( string SectionName ) : IniSection
SectionName string
return IniSection

LoadFromFile() public method

public LoadFromFile ( string FileName ) : bool
FileName string
return bool

LoadFromStream() public method

public LoadFromStream ( Stream stream ) : void
stream Stream
return void

MemIniFile() public method

public MemIniFile ( ) : System
return System

ReadValue() public method

public ReadValue ( string SectionName, string key, System.DateTime defaultv ) : System.DateTime
SectionName string
key string
defaultv System.DateTime
return System.DateTime

ReadValue() public method

public ReadValue ( string SectionName, string key, bool defaultv ) : bool
SectionName string
key string
defaultv bool
return bool

ReadValue() public method

public ReadValue ( string SectionName, string key, float defaultv ) : float
SectionName string
key string
defaultv float
return float

ReadValue() public method

public ReadValue ( string SectionName, string key, int defaultv ) : int
SectionName string
key string
defaultv int
return int

ReadValue() public method

public ReadValue ( string SectionName, string key, string defaultv ) : string
SectionName string
key string
defaultv string
return string

SaveToFile() public method

public SaveToFile ( string FileName ) : void
FileName string
return void

SaveToStream() public method

public SaveToStream ( Stream stream ) : void
stream Stream
return void

WriteValue() public method

public WriteValue ( string SectionName, string key, System.DateTime value ) : IniSection
SectionName string
key string
value System.DateTime
return IniSection

WriteValue() public method

public WriteValue ( string SectionName, string key, bool value ) : IniSection
SectionName string
key string
value bool
return IniSection

WriteValue() public method

public WriteValue ( string SectionName, string key, float value ) : IniSection
SectionName string
key string
value float
return IniSection

WriteValue() public method

public WriteValue ( string SectionName, string key, int value ) : IniSection
SectionName string
key string
value int
return IniSection

WriteValue() public method

public WriteValue ( string SectionName, string key, string value ) : IniSection
SectionName string
key string
value string
return IniSection