Exemple #1
0
        public IPalasoDataObjectProperty Clone()
        {
            var clone = new OptionRef(Key);

            clone.EmbeddedXmlElements = new List <string>(EmbeddedXmlElements);
            clone.Annotation          = Annotation == null ? null : Annotation.Clone();
            return(clone);
        }
Exemple #2
0
        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);
        }