C# Class Nini.Ini.IniWriter

Inheritance: IDisposable
Exibir arquivo Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
Flush ( ) : void
IniWriter ( Stream stream ) : System
IniWriter ( TextWriter writer ) : System
IniWriter ( string filePath ) : System
ToString ( ) : string
WriteEmpty ( ) : void
WriteEmpty ( string comment ) : void
WriteKey ( string key, string value ) : void
WriteKey ( string key, string value, string comment ) : void
WriteSection ( string section ) : void
WriteSection ( string section, string comment ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Comment ( string text ) : string

Returns a formatted comment.

GetKeyValue ( string text ) : string

Returns the value of a key.

MassageValue ( string text ) : string

Fixes the incoming value to prevent illegal characters from hurting the integrity of the INI file.

ValidateState ( ) : void

Validates the state to determine if the item can be written.

ValidateStateKey ( ) : void

Validates whether a key can be written.

Write ( string value ) : void

Writes data to the writer.

WriteLine ( string value ) : void

Writes a full line to the writer.

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

IniWriter() public method

public IniWriter ( Stream stream ) : System
stream Stream
return System

IniWriter() public method

public IniWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
return System

IniWriter() public method

public IniWriter ( string filePath ) : System
filePath string
return System

ToString() public method

public ToString ( ) : string
return string

WriteEmpty() public method

public WriteEmpty ( ) : void
return void

WriteEmpty() public method

public WriteEmpty ( string comment ) : void
comment string
return void

WriteKey() public method

public WriteKey ( string key, string value ) : void
key string
value string
return void

WriteKey() public method

public WriteKey ( string key, string value, string comment ) : void
key string
value string
comment string
return void

WriteSection() public method

public WriteSection ( string section ) : void
section string
return void

WriteSection() public method

public WriteSection ( string section, string comment ) : void
section string
comment string
return void