public object CloneObject() { IncomingConnection clone = new IncomingConnection(); CloneProperties(clone); return(clone); }
private void CloneProperties(object aClone) { IncomingConnection newClone = ((IncomingConnection)(aClone)); newClone.Label = Label; newClone.Color = Color; newClone.SourcePin = SourcePin; if ((mSource != null)) { newClone.mSource = ((ArticyValueArticyObject)(mSource.CloneObject())); } }