public override object Clone() { ProgramOutPort obj = (ProgramOutPort)base.Clone(); if (_property != null) { obj.PortProperty = (ObjectRef)_property.Clone(); } return(obj); }
public override object Clone() { ProgramInPort obj = (ProgramInPort)base.Clone(); if (_property != null) { obj.PortProperty = (ObjectRef)_property.Clone(); } obj.DataFlowType = this.DataFlowType; return(obj); }
public virtual object Clone() { RaisDataType obj = (RaisDataType)Activator.CreateInstance(this.GetType(), _libType, _name); obj.Description = Description; if (_devType != null) { obj.DevType = (ObjectRef)_devType.Clone(); } obj.SetServiceProvider(_serviceProvider); return(obj); }
public object Clone() { ObjectRef obj = new ObjectRef(_xpathNode); obj.Type = _type; obj.Name = _name; if (_owner != null) { obj.Owner = (ObjectRef)_owner.Clone(); } if (_value != null) { obj.Value = (Data)_value.Clone(); } return(obj); }
public object Clone() { ProgramEntity obj = new ProgramEntity( (ObjectRef)_owner.Clone()); if (_inports != null) { ProgramInPort[] a = new ProgramInPort[_inports.Length]; for (int i = 0; i < _inports.Length; i++) { _inports[i].ConstructorParameters = new object[] { obj }; a[i] = (ProgramInPort)_inports[i].Clone(); } obj.Inports = a; } if (_outports != null) { ProgramOutPort[] a = new ProgramOutPort[_outports.Length]; for (int i = 0; i < _outports.Length; i++) { _outports[i].ConstructorParameters = new object[] { obj }; a[i] = (ProgramOutPort)_outports[i].Clone(); } obj.Outports = a; } if (_newInport != null) { _newInport.ConstructorParameters = new object[] { obj }; obj.NewInport = (LinkLineNodeInPort)_newInport.Clone(); } if (_newOutport != null) { _newOutport.ConstructorParameters = new object[] { obj }; obj.NewOutport = (LinkLineNodeOutPort)_newOutport.Clone(); } return(obj); }