C# Class CSE.Exps.TempIdentifierExp

Used for storing temporary identifiers declared in the given expression
Not fully supported yet!
Show file Open project: kcherr1/CSharp-Eval Class Usage Examples

Public Methods

Method Description
AddIdent ( Type type, string name ) : void

Adds a temporary identifier of the given type and name

AddIdent ( Type type, string name, dynamic initValue ) : void

Adds a temporary identifier of the given type and name and initializes it to the given initValue

Assign ( string name, object value ) : void

Assigns the given value to the temporary identifier of the given name

Lookup ( string name ) : CseObject

Looks up temporary identifier of the given name and returns it

Method Details

AddIdent() public static method

Adds a temporary identifier of the given type and name
public static AddIdent ( Type type, string name ) : void
type System.Type Type of identifier
name string Name of identifier
return void

AddIdent() public static method

Adds a temporary identifier of the given type and name and initializes it to the given initValue
public static AddIdent ( Type type, string name, dynamic initValue ) : void
type System.Type Type of identifier
name string Name of identifier
initValue dynamic Initial value of identifer
return void

Assign() public static method

Assigns the given value to the temporary identifier of the given name
public static Assign ( string name, object value ) : void
name string Identifier name
value object Value to assign identifier
return void

Lookup() public static method

Looks up temporary identifier of the given name and returns it
public static Lookup ( string name ) : CseObject
name string Identifier name to look up
return CseObject