public override BaseElement Clone() { SendTask clone = new SendTask(); clone.SetValues(this); return(clone); }
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()); } } }