using System.Collections.Generic; namespace Flowsharp.Models { public class WorkflowExecutionScope { public WorkflowExecutionScope() { Variables = new Dictionary(); } public object ReturnValue { get; set; } public IDictionary Variables { get; } public void SetVariable(string variableName, object value) { Variables[variableName] = value; } public T GetVariable(string name) { return Variables.ContainsKey(name) ? (T)Variables[name] : default(T); } } }