سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد نابودکردن Threadها با Abort در c#.net را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
کد نابودکردن Threadها با Abort در c#.net :
using System;
using System.Threading;
class MainClass
{
static int MyCount = 0;
static void Main(string[] args)
{
MyClassThread me = new MyClassThread();
Thread MyNewThread = new Thread(new ThreadStart(me.MyThread));
MyNewThread.Start();
if (MyCount == 0)
using System.Threading;
class MainClass
{
static int MyCount = 0;
static void Main(string[] args)
{
MyClassThread me = new MyClassThread();
Thread MyNewThread = new Thread(new ThreadStart(me.MyThread));
MyNewThread.Start();
if (MyCount == 0)