Appearance
SetVariable Method
Definition
- Namespace:
JASE.Expressions - Assembly:
JASE.Expressions.dll
Overloads
| Name | Description |
|---|---|
void SetVariable(string name, object value) | Sets or replaces a variable in the current evaluation scope. The variable's runtime type is inferred from the value argument. |
void SetVariable(string name, object value, Type type) | Sets or replaces a variable in the current evaluation scope with an explicit type description used for reflection and type metadata. |
void SetVariable(string name, object value)
csharp
void SetVariable(string name, object value)Sets or replaces a variable in the current evaluation scope. The variable's runtime type is inferred from the value argument.
Parameters
| Name | Description |
|---|---|
name | The variable name as it will be referenced in expressions. |
value | The value assigned to the variable. May be null. |
void SetVariable(string name, object value, Type type)
csharp
void SetVariable(string name, object value, Type type)Sets or replaces a variable in the current evaluation scope with an explicit type description used for reflection and type metadata.
Parameters
| Name | Description |
|---|---|
name | The variable name as it will be referenced in expressions. |
type | The declared type of the variable used for member and method resolution. May differ from value's runtime type. |
value | The value assigned to the variable. May be null. |