Microsoft.Scripting.ScopeStorage.GetValue C# (CSharp) Method

GetValue() public method

Gets the named value from the scope optionally ignoring case. If the named value is not present an InvalidOperationException is raised.
public GetValue ( string name, bool ignoreCase ) : Object
name string
ignoreCase bool
return System.Object
        public dynamic GetValue(string name, bool ignoreCase) {
            object res;
            if (GetScopeVariable(name, ignoreCase).TryGetValue(out res)) {
                return res;
            }
            throw new KeyNotFoundException("no value");
        }