/// <summary> /// Fetches the value of a variable stored in the scope. /// /// If there is no engine associated with the scope (see ScriptRuntime.CreateScope), then the name lookup is /// a literal lookup of the name in the scope's dictionary. Therefore, it is case-sensitive for example. /// /// If there is a default engine, then the name lookup uses that language's semantics. /// </summary> public object GetVariable(ScriptScope scope, string name) { ContractUtils.RequiresNotNull(scope, "scope"); ContractUtils.RequiresNotNull(name, "name"); return(_language.LookupName(GetCodeContext(scope), SymbolTable.StringToId(name))); }