Пример #1
0
        public override string ToString()
        {
            StringBuilder res = new StringBuilder((Referent == null ? "Null" : Referent.ToString()));

            if (Morph != null)
            {
                res.AppendFormat(" {0}", Morph.ToString());
            }
            return(res.ToString());
        }
Пример #2
0
        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());
        }
Пример #3
0
        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());
        }
Пример #4
0
 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()));
     }
 }