Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public void UseFuncs(GetFuncs funcs)
 {
     externalFuncs.Add(funcs);
 }