private XObjectHash AddValue(string key, XObjectValues value) { XObjectSet set = Pool <XObjectSet> .Pop(); set.value = value; this._objectSet.Add(key, set); return(this); }
private XObjectHash AddValue(string key, XObjectValues value) { if (this._objectSet == null) { this._objectSet = new Dictionary <string, XObjectSet>(); } XObjectSet set = new XObjectSet(); set.value = value; this._objectSet.Add(key, set); return(this); }
public XObjectHash AddControlPoint(string key, params float[] values) { if (!this._objectSet.ContainsKey(key)) { Add(key, 0f); } XObjectSet objSet = this._objectSet[key]; XObjectValues value = objSet.value; value.controlPoint = values; objSet.value = value; return(this); }