public override string ToString() { string str = CountOnText.ToString() + ":"; for (int i = 0; i < OnWhichLinesMentioned.Count(); i++) { str += " " + (OnWhichLinesMentioned[i] + 1).ToString(); } return(str); }
public string ToString(int page) { string str = CountOnText.ToString() + ":"; int[] pages = OnPage(page); for (int i = 0; i < pages.Count(); i++) { str += " " + pages[i]; } return(str); }