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