⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadabort.cs

📁 visual c# 网络编程技术与实践实例包括几个源码
💻 CS
字号:
//ThreadAbortSample.cs
using System;
using System.Threading;
class Class1
{
    public void Method1()
    {
        Console.WriteLine("Method1 is the starting point of excution of the thread");
    }
    public static void Main()
    {
        Class1 newclass = new Class1();
        Thread Thread1 = new Thread(new ThreadStart(newclass.Method1));
        Thread1.Name = "Sample Thread";
        Thread1.Start();
        Console.WriteLine("The excution of Sample Thread has started.");
        Thread1.Abort();
        Console.ReadLine();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -