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

GetScopeVariableIgnoreCase() public method

Gets the ScopeVariableIgnoreCase for the scope in a case-insensitive manner. The ScopeVariable can be held onto and get/set/deleted without performing a dictionary lookup on subsequent accesses.
public GetScopeVariableIgnoreCase ( string name ) : ScopeVariableIgnoreCase
name string
return ScopeVariableIgnoreCase
        public ScopeVariableIgnoreCase GetScopeVariableIgnoreCase(string name) {
            ScopeVariableIgnoreCase storageInfo;
            lock (_storage) {
                if (!_storage.TryGetValue(name, out storageInfo)) {
                    _storage[name] = storageInfo = new ScopeVariableIgnoreCase(name);
                }
                return storageInfo;
            }
        }
        /// <summary>