private static string GetIndexData(WordIndex index) { Dictionary <string, List <ushort> > d = index.ConvertToDictionary(); StringBuilder result = new StringBuilder(); foreach (string word in d.Keys) { result.AppendLine(String.Format("{0}: [{1}]", word, String.Join(", ", d[word]))); } return(result.ToString()); }
public Dictionary <string, List <ushort> > ConvertToDictionary() { return(_index.ConvertToDictionary()); }