C# Class Common.Logging.Simple.NoOpVariablesContext

A null-functionality implementation of IVariablesContext
Inheritance: IVariablesContext
显示文件 Open project: net-commons/common-logging

Public Methods

Method Description
Clear ( ) : void

Clears the context variables

Contains ( string key ) : bool

Checks if a variable is set within the context

Get ( string key ) : object

Gets the value of a variable within the context

Remove ( string key ) : void

Removes a variable from the context by key

Set ( string key, object value ) : void

Sets the value of a new or existing variable within the context

Method Details

Clear() public method

Clears the context variables
public Clear ( ) : void
return void

Contains() public method

Checks if a variable is set within the context
public Contains ( string key ) : bool
key string The key of the variable to check for
return bool

Get() public method

Gets the value of a variable within the context
public Get ( string key ) : object
key string The key of the variable to get
return object

Remove() public method

Removes a variable from the context by key
public Remove ( string key ) : void
key string The key of the variable to remove
return void

Set() public method

Sets the value of a new or existing variable within the context
public Set ( string key, object value ) : void
key string The key of the variable that is to be added
value object The value to add
return void