سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد thread.IsAlive در سی شارپ را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
کد thread.IsAlive در سی شارپ :
using System;
using System.Threading;
public class ThreadState {
static void WorkerFunction() {
for (int i = 1; i < 50000; i++) {
Console.WriteLine("Worker: " + Thread.CurrentThread.ThreadState);
}
}
static void Main() {
using System.Threading;
public class ThreadState {
static void WorkerFunction() {
for (int i = 1; i < 50000; i++) {
Console.WriteLine("Worker: " + Thread.CurrentThread.ThreadState);
}
}
static void Main() {