public override object CloneExp(MathNode parent) { MathNodeParameter node = (MathNodeParameter)base.CloneExp(parent); node.UseDefaultValue = _useDefault; node.DefaultValue = DefaultValue; return(node); }
public override MathNode CreateDefaultNode(int i) { MathNodeParameter p = new MathNodeParameter(this); if (_methodRef.Parameters != null && i < _methodRef.Parameters.Length) { p.VariableName = _methodRef.Parameters[i].Name; p.VariableType = _methodRef.Parameters[i]; p.DefaultValue = XmlSerialization.CreateObject(p.VariableType.Type); } return(p); }