Esempio n. 1
0
 public object Export(string name)
 {
     if (IsRoot)
     {
         return(this[name]);
     }
     if (VariableStorage.ContainsKey(name))
     {
         var value = this[name];
         Export(name, value);
         return(value);
     }
     return(null);
 }
Esempio n. 2
0
 public bool HasVariable(string name) => VariableStorage.ContainsKey(name) || (!IsRoot && Parent.HasVariable(name));