public override string ToString() { StringBuilder res = new StringBuilder((Referent == null ? "Null" : Referent.ToString())); if (Morph != null) { res.AppendFormat(" {0}", Morph.ToString()); } return(res.ToString()); }
public override string ToString() { StringBuilder res = new StringBuilder(); res.AppendFormat("{0} {1}", Value, Typ.ToString()); if (Morph != null) { res.AppendFormat(" {0}", Morph.ToString()); } return(res.ToString()); }
public override string ToString() { if (Items.Count == 1) { return(string.Format("{0}, {1}", Items[0].ToString(), Morph.ToString())); } StringBuilder tmp = new StringBuilder(); foreach (VerbPhraseItemToken it in Items) { if (tmp.Length > 0) { tmp.Append(' '); } tmp.Append(it); } tmp.AppendFormat(", {0}", Morph.ToString()); return(tmp.ToString()); }
public override string ToString() { if (InternalNoun == null) { return(string.Format("{0} {1}", this.GetNormalCaseText(null, Pullenti.Morph.MorphNumber.Undefined, Pullenti.Morph.MorphGender.Undefined, false) ?? "?", Morph.ToString())); } else { return(string.Format("{0} {1} / {2}", this.GetNormalCaseText(null, Pullenti.Morph.MorphNumber.Undefined, Pullenti.Morph.MorphGender.Undefined, false) ?? "?", Morph.ToString(), InternalNoun.ToString())); } }