public void SetValueOfId(string def, Value val) { NodeDefinition n = null; foreach (NodeDefinition d in definitions) { if (d.IsNamed(def)) { n = d; } } if (n != null) { definitions.Remove(n); } n = new NodeDefinition(this, def, new LiteralExpression(this, val)); definitions.Add(n); }
public void AddDefinition(NodeDefinition def) { definitions.Add(def); }