示例#1
0
文件: Pair.cs 项目: KudrinAV/Task2
        public override string ToString()
        {
            string str = CountOnText.ToString() + ":";

            for (int i = 0; i < OnWhichLinesMentioned.Count(); i++)
            {
                str += " " + (OnWhichLinesMentioned[i] + 1).ToString();
            }
            return(str);
        }
示例#2
0
文件: Pair.cs 项目: KudrinAV/Task2
        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);
        }