public void Set(string groupName, string variableName, object value) { VariableGroup set = GetVariableSetByName(groupName); if (set == null) { return; } VariablePair pair = set.GetPairByName(variableName); if (pair == null) { return; } pair.SetValue(value); }
public T Get <T>(string owner, string name) { VariableGroup set = GetVariableSetByName(owner); if (set == null) { return(default(T)); } VariablePair pair = set.GetPairByName(name); if (pair == null) { return(default(T)); } return((T)pair.GetValue()); }