public void RemoveVariable(string name) { name = name.ToLower(); if (SessionVariables.ContainsKey(name)) { SessionVariables.TryRemove(name, out object value); } }
public object GetVariableValue(string name) { name = name.ToLower(); if (SessionVariables.ContainsKey(name)) { return(SessionVariables[name]); } return(null); }
public void SetVariable(string name, object value) { name = name.ToLower(); if (SessionVariables.ContainsKey(name)) { SessionVariables[name] = value; } else { SessionVariables.TryAdd(name, value); } }