public override object CloneExp(MathNode parent) { //OnCreateClone will populate the members MathNodeMethodInvoke node = (MathNodeMethodInvoke)base.CloneExp(parent); if (_methodRef.MethodID != 0) { node.OnParametersSet(); } return(node); }
public override void SetFunction(object func) { MathNodeRoot math = func as MathNodeRoot; if (math != null) { MathNodeMethodInvoke mi = math[1] as MathNodeMethodInvoke; if (mi != null) { this.MethodReference = mi.MethodReference; } } }