/// <summary> /// Returns a <see cref="System.String" /> that represents this instance. /// </summary> /// <returns> /// A <see cref="System.String" /> that represents this instance. /// </returns> public override string ToString() { StringBuilder sb = new StringBuilder("[WordEtymology] "); // lineages if (Lineages != null) { Lineage best = Lineages.OrderBy(l => l.Rank).FirstOrDefault(); if (best != null) { sb.Append(best); } if (Lineages.Count > 1) { sb.Append(" (other ").Append(Lineages.Count - 1).Append(")"); } } // date if (Date != null) { sb.Append(" (").Append(Date).Append(")"); } // discussion if (!string.IsNullOrEmpty(Discussion)) { sb.Append(TextCutter.Cut(Discussion, _options)); } return(sb.ToString()); }
private static void ContractProxy_FetchLineagesCompleted(object sender, FetchLineagesCompletedEventArgs e) { _Lineages = e.Result; }
public FetchLineagesCompletedEventArgs(Lineages result) { _result = result; }