public dynamic GetValue(string name, bool ignoreCase) { object res; if (GetScopeVariable(name, ignoreCase).TryGetValue(out res)) { return res; } throw new KeyNotFoundException("no value"); }