public IPalasoDataObjectProperty Clone() { var clone = new OptionRef(Key); clone.EmbeddedXmlElements = new List <string>(EmbeddedXmlElements); clone.Annotation = Annotation == null ? null : Annotation.Clone(); return(clone); }
public override Annotatable Clone() { var clone = new LanguageForm(); clone._writingSystemId = _writingSystemId; clone._form = _form; clone.Annotation = Annotation == null ? null : Annotation.Clone(); foreach (var span in _spans) { clone._spans.Add(new FormatSpan { Index = span.Index, Length = span.Length, Class = span.Class, Lang = span.Lang, LinkURL = span.LinkURL }); } return(clone); }