public override object CloneExp(MathNode parent) { MathNodeField clone = (MathNodeField)base.CloneExp(parent); clone._name = _name; if (_typePointer != null) { clone.FieldType = (DataTypePointer)_typePointer.Clone(); } return(clone); }
protected override void OnCloneDataType(MathNode cloned) { MathNodeField m = (MathNodeField)cloned; if (_dataType != null) { m._dataType = _dataType.Clone() as RaisDataType; } if (_typePointer != null) { m._typePointer = _typePointer.Clone() as DataTypePointer; } }