コード例 #1
0
        public object CloneObject()
        {
            IncomingConnection clone = new IncomingConnection();

            CloneProperties(clone);
            return(clone);
        }
コード例 #2
0
        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()));
            }
        }