コード例 #1
0
        public override BaseElement Clone()
        {
            ActivitiListener clone = new ActivitiListener();

            clone.SetValues(this);
            return(clone);
        }
コード例 #2
0
        public void SetValues(ActivitiListener otherListener)
        {
            _event             = otherListener.Event;
            implementation     = otherListener.Implementation;
            implementationType = otherListener.ImplementationType;

            fieldExtensions = new List <FieldExtension>();
            if (otherListener.FieldExtensions != null && otherListener.FieldExtensions.Count > 0)
            {
                foreach (FieldExtension extension in otherListener.FieldExtensions)
                {
                    fieldExtensions.Add((FieldExtension)extension.Clone());
                }
            }
        }