public new static MultiText Create(Dictionary <string, string> forms) { MultiText m = new MultiText(); CopyForms(forms, m); return(m); }
public virtual IPalasoDataObjectProperty Clone() { var clone = new MultiText(); clone.EmbeddedXmlElements = new List <string>(EmbeddedXmlElements); clone.Forms = Forms.Select(f => (LanguageForm)f.Clone()).ToArray(); return(clone); }
public static MultiText Create(Dictionary <string, string> forms, Dictionary <string, List <LiftSpan> > spans) { if (forms == null) { throw new ArgumentNullException("forms"); } if (spans == null) { spans = new Dictionary <string, List <LiftSpan> >(); } MultiText m = new MultiText(); CopyForms(forms, m); m.CopySpans(spans); return(m); }
public static MultiText Create(LiftMultiText liftMultiText) { if (liftMultiText == null) { throw new ArgumentNullException("liftMultiText"); } MultiText m = new MultiText(); Dictionary <string, string> forms = new Dictionary <string, string>(); foreach (KeyValuePair <string, LiftString> pair in liftMultiText) { if (pair.Value != null) { forms.Add(pair.Key, ConvertLiftStringToSimpleStringWithMarkers(pair.Value)); } } CopyForms(forms, m); return(m); }
public bool Equals(MultiText multiText) { if (ReferenceEquals(null, multiText)) { return(false); } if (ReferenceEquals(this, multiText)) { return(true); } if (EmbeddedXmlElements.Count != multiText.EmbeddedXmlElements.Count) { return(false); } if (!EmbeddedXmlElements.SequenceEqual(multiText.EmbeddedXmlElements)) { return(false); } if (!base.Equals(multiText)) { return(false); } return(true); }