/// <summary> /// 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. /// </summary> public ScopeVariableIgnoreCase GetScopeVariableIgnoreCase(string name) { lock (_storage) { if (!_storage.TryGetValue(name, out ScopeVariableIgnoreCase storageInfo)) { _storage[name] = storageInfo = new ScopeVariableIgnoreCase(name); } return(storageInfo); } }
/// <summary> /// 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. /// </summary> public ScopeVariableIgnoreCase GetVariableIgnoreCase(string name) { ScopeVariableIgnoreCase storageInfo; lock (_storage) { if (!_storage.TryGetValue(name, out storageInfo)) { _storage[name] = storageInfo = new ScopeVariableIgnoreCase(name); } return storageInfo; } }