C# Class Treasury.Config

显示文件 Open project: NyxStudios/Treasury

Public Methods

Method Description
Read ( Stream stream ) : ConfigFile

Reads the configuration file from a stream

Read ( string path ) : ConfigFile

Reads a configuration file from a given path

Write ( Stream stream ) : void

Writes the configuration to a stream

Write ( string path ) : void

Writes the configuration to a given path

Method Details

Read() public static method

Reads the configuration file from a stream
public static Read ( Stream stream ) : ConfigFile
stream Stream stream
return TShockAPI.ConfigFile

Read() public static method

Reads a configuration file from a given path
public static Read ( string path ) : ConfigFile
path string string path
return TShockAPI.ConfigFile

Write() public method

Writes the configuration to a stream
public Write ( Stream stream ) : void
stream Stream stream
return void

Write() public method

Writes the configuration to a given path
public Write ( string path ) : void
path string string path - Location to put the config file
return void