private static IReadOnlyDictionary <string, Value> SetInputs(IReadOnlyDictionary <string, Value> values, IExecutionState state, string prefix = ":") { foreach (var(k, v) in values) { state.Set(new VariableName(prefix + k), v); } return(values); }
public static void CopyTo(this IExecutionState from, IExecutionState to, bool externalsOnly = false) { foreach (var(name, value) in from) { if (!name.IsExternal && externalsOnly) { continue; } to.Set(name, value); } }