Beispiel #1
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;
            }
        }
        public virtual object Clone()
        {
            ClassPointer owner = (ClassPointer)_owner.Clone();
            EventClass   obj   = (EventClass)Activator.CreateInstance(this.GetType(), owner);

            obj.IsStatic = this.IsStatic;
            obj.MemberId = MemberId;
            obj.SetName(_name);
            obj.Description = Description;
            if (_handlerType != null)
            {
                obj._handlerType = (DataTypePointer)_handlerType.Clone();
            }
            return(obj);
        }