Пример #1
0
        public override BaseElement Clone()
        {
            SendTask clone = new SendTask();

            clone.SetValues(this);
            return(clone);
        }
Пример #2
0
        public void SetValues(SendTask otherElement)
        {
            base.SetValues(otherElement);
            type = otherElement.Type;
            implementationType = otherElement.ImplementationType;
            operationRef       = otherElement.OperationRef;

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