C# Class Fanx.Util.Properties

Properties is an partial implemention of java.util.Properties for .NET.
ファイルを表示 Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
Properties ( ) : System

Creates an empty property list with no default values.

getProperty ( string key ) : string

Searches for the property with the specified key in this property list. If the key is not found in this property list, return default value argument.

getProperty ( string key, string defVal ) : string

Searches for the property with the specified key in this property list. If the key is not found in this property list, return default value argument.

load ( Stream input ) : void

Reads a property list (key and element pairs) from the input stream.

Method Details

Properties() public method

Creates an empty property list with no default values.
public Properties ( ) : System
return System

getProperty() public method

Searches for the property with the specified key in this property list. If the key is not found in this property list, return default value argument.
public getProperty ( string key ) : string
key string
return string

getProperty() public method

Searches for the property with the specified key in this property list. If the key is not found in this property list, return default value argument.
public getProperty ( string key, string defVal ) : string
key string
defVal string
return string

load() public method

Reads a property list (key and element pairs) from the input stream.
public load ( Stream input ) : void
input Stream
return void