IDslCompilerContextGetTempT Method
|
Get value by name in a context workflow.
Throw an exception when key is not existed yet.
Namespace: Casewhere.Runtime.DSL.CompilerContextAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
SyntaxT GetTemp<T>(
string key
)
Parameters
- key String
- The key.
Type Parameters
- T
- The variable type.
Return Value
TThe variable value.
Example
ctx.SetTemp("Confirmed", true);
ctx.SetTemp("ConfirmedOption", 5);
if (ctx.GetTemp<bool>("Confirmed"))
DoSomething(ctx.GetTemp<int>("ConfirmedOption"));
See Also