public Ctx(IDictionary <string, object> predefinedValues, GetFuncs getFunc, Func <Ctx, string, object> externalValueLookup = null) { if (predefinedValues != null) { foreach (var pair in predefinedValues) { values[GetOrCreateIndexOf(pair.Key)] = pair.Value; } } externalFuncs = new List <GetFuncs>(); externalFuncs.Add(getFunc); this.externalValueLookup = externalValueLookup; }
public void UseFuncs(GetFuncs funcs) { externalFuncs.Add(funcs); }