示例#1
0
文件: clsQueue.cs 项目: rwj42/Crawler
        public clsURL[] CopyFromQueue()
        {
            Object[] iTemp   = _iQueue.ToArray();
            var      iResult = new clsURL[iTemp.Length];

            for (int i = 0; i < iTemp.Length; i++)
            {
                iResult[i] = (clsURL)iTemp[i];
            }

            return(iResult);
        }
示例#2
0
文件: clsQueue.cs 项目: rwj42/Crawler
 public bool CheckVisited(clsURL URL)
 {
     return(_iQueue.Contains(URL));
 }
示例#3
0
文件: clsQueue.cs 项目: rwj42/Crawler
 public void AddURL(clsURL URL)
 {
     _iQueue.Enqueue(URL);
 }