示例#1
0
        static void Main()
        {
            string htmlFileName = @"DifficultWords.txt";

            ExtractThread workerThread = new ExtractThread();

            workerThread.Start(htmlFileName);

            Console.ReadLine();

            workerThread.Kill(); // <-- Or could use the C# using construct
        }
示例#2
0
        static void Main()
        {
            string htmlFileName = @"DifficultWords.txt";

            ExtractThread workerThread = new ExtractThread();

            workerThread.Start(htmlFileName);

            Console.WriteLine("Waiting for results to be completed...");

            //workerThread.Completed.WaitOne();

            foreach (string word in workerThread.Result)
            {
                Console.WriteLine(word);
            }
        }