C# Class Zetbox.API.Configuration.ZetboxConfig

Afficher le fichier Open project: daszat/zetbox Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
FromFile ( HostType type, string filename, string fallbackBaseName ) : ZetboxConfig

Deserialize from a TextReader

GetDefaultConfigName ( string basename ) : string
GetDefaultConfigName ( string basename, string baseDir ) : string
ToFile ( string filename ) : void

Serialize this Object to a File

ToStream ( Stream s ) : void

Serialize this Object to a Stream

ZetboxConfig ( ) : System

Create an empty configuration

Method Details

FromFile() public static méthode

Deserialize from a TextReader
public static FromFile ( HostType type, string filename, string fallbackBaseName ) : ZetboxConfig
type HostType The current host type. Determines where we look for assemblies.
filename string configuration file w/ or w/o path
fallbackBaseName string A configuration name to search in the %zenv% environmentvariable, if none is specified in the first parameter
Résultat ZetboxConfig

GetDefaultConfigName() public static méthode

public static GetDefaultConfigName ( string basename ) : string
basename string
Résultat string

GetDefaultConfigName() public static méthode

public static GetDefaultConfigName ( string basename, string baseDir ) : string
basename string
baseDir string
Résultat string

ToFile() public méthode

Serialize this Object to a File
public ToFile ( string filename ) : void
filename string configuration file w/ or w/o path
Résultat void

ToStream() public méthode

Serialize this Object to a Stream
public ToStream ( Stream s ) : void
s Stream Stream
Résultat void

ZetboxConfig() public méthode

Create an empty configuration
public ZetboxConfig ( ) : System
Résultat System