コード例 #1
0
        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);
        }
コード例 #2
0
        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;
            }
        }