C# Class Nini.Ini.IniWriter

Inheritance: IDisposable
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

IniWriter() public méthode

public IniWriter ( Stream stream ) : System
stream Stream
Résultat System

IniWriter() public méthode

public IniWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
Résultat System

IniWriter() public méthode

public IniWriter ( string filePath ) : System
filePath string
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

WriteEmpty() public méthode

public WriteEmpty ( ) : void
Résultat void

WriteEmpty() public méthode

public WriteEmpty ( string comment ) : void
comment string
Résultat void

WriteKey() public méthode

public WriteKey ( string key, string value ) : void
key string
value string
Résultat void

WriteKey() public méthode

public WriteKey ( string key, string value, string comment ) : void
key string
value string
comment string
Résultat void

WriteSection() public méthode

public WriteSection ( string section ) : void
section string
Résultat void

WriteSection() public méthode

public WriteSection ( string section, string comment ) : void
section string
comment string
Résultat void