Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
     }
 }