C# Class BF2Statistics.Program

Show file Open project: BF2Statistics/ControlCenter

Public Properties

Property Type Description
Assembly Assembly
Config Settings
ErrorLog BF2Statistics.Logging.LogWriter
RootPath string
Version System.Version

Public Methods

Method Description
GetResource ( string ResourceName ) : Stream

Returns an embedded resource's stream

GetResourceAsString ( string ResourceName ) : string

Gets the string contents of an embedded resource

GetResourceFileLines ( string ResourceName ) : string[]

Gets the lines of a resource file

Private Methods

Method Description
Main ( string args ) : void

Method Details

GetResource() public static method

Returns an embedded resource's stream
public static GetResource ( string ResourceName ) : Stream
ResourceName string
return Stream

GetResourceAsString() public static method

Gets the string contents of an embedded resource
public static GetResourceAsString ( string ResourceName ) : string
ResourceName string
return string

GetResourceFileLines() public static method

Gets the lines of a resource file
public static GetResourceFileLines ( string ResourceName ) : string[]
ResourceName string
return string[]

Property Details

Assembly public static property

Gets the Assembly that contains this executing code
public static Assembly Assembly
return Assembly

Config public static property

The User Config object
public static Settings Config
return Settings

ErrorLog public static property

The program wide error log file
public static LogWriter,BF2Statistics.Logging ErrorLog
return BF2Statistics.Logging.LogWriter

RootPath public static property

Specifies the installation directory of this program
public static string RootPath
return string

Version public static property

Specifies the Program Version
public static Version,System Version
return System.Version