private bool TryGet(string key, out ControlPointValue val) { if (Settings == null || !Settings.TryGetValue(key, out val)) { val = m_defaultValue; return(false); } return(true); }
private void Set(string key, ControlPointValue val) { if (Settings == null) { Settings = new Dictionary <string, ControlPointValue>(); } Settings[key] = val; }
public ControlPointValue(ControlPointValue value) { FloatValue = value.FloatValue; IntValue = value.IntValue; VectorValue = value.VectorValue; }