public override string ToString() { StringBuilder tmp = new StringBuilder(); if (BeforeVerb != null) { tmp.AppendFormat("<{0}>: ", BeforeVerb.ToString()); } foreach (NGItem it in Items) { if (it != Items[0]) { tmp.Append("; \r\n"); } tmp.Append(it.ToString()); } if (AfterVerb != null) { tmp.AppendFormat(" :<{0}>", AfterVerb.ToString()); } return(tmp.ToString()); }
public override string ToString() { StringBuilder tmp = new StringBuilder(); tmp.AppendFormat("{0}: {1} ", Coef, Typ.ToString()); if (Plural == 1) { tmp.Append(" PLURAL "); } else if (Plural == 0) { tmp.Append(" SINGLE "); } if (Reverce) { tmp.Append(" REVERCE "); } tmp.AppendFormat("{0}", From.Source.ToString()); if (ToAllListItems) { tmp.Append(" ALLLISTITEMS "); } if (To != null) { tmp.AppendFormat(" -> {0}", To.Source.ToString()); } else if (ToVerb != null) { tmp.AppendFormat(" -> {0}", ToVerb.ToString()); } if (AltLink != null) { tmp.AppendFormat(" / ALTLINK: {0}", AltLink.ToString()); } return(tmp.ToString()); }