Пример #1
0
        public override object CloneExp(MathNode parent)
        {
            MathNodeParameter node = (MathNodeParameter)base.CloneExp(parent);

            node.UseDefaultValue = _useDefault;
            node.DefaultValue    = DefaultValue;
            return(node);
        }
Пример #2
0
        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);
        }