C# Class Microsoft.Scripting.ScopeVariable

Boxes the value for storage in a scope. Languages or consumers of the scope can save this value and use it to get/set the current value in the scope for commonly accessed values. ScopeVariables are case sensitive and will only refer to a single value.
Inheritance: IScopeVariable, IWeakReferencable
显示文件 Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
DeleteValue ( ) : bool

Removes the current value from the scope.

SetValue ( object value ) : void

Sets the current value in the scope.

TryGetValue ( Object &value ) : bool

Atempts to get the value. If a value is assigned it returns true otherwise it returns false.

Private Methods

Method Description
ScopeVariable ( ) : Microsoft.Scripting.Ast

Method Details

DeleteValue() public method

Removes the current value from the scope.
public DeleteValue ( ) : bool
return bool

SetValue() public method

Sets the current value in the scope.
public SetValue ( object value ) : void
value object
return void

TryGetValue() public method

Atempts to get the value. If a value is assigned it returns true otherwise it returns false.
public TryGetValue ( Object &value ) : bool
value System.Object
return bool