سلام بر تمامی برنامه نویسان سی شارپ 😉 در این پست آموزش start یک متد در Thread جداگانه در #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
کد start یک متد در Thread جداگانه در #C :
using System;
using System.Threading;
public class MainClass
{
public const int Repetitions = 1000;
public static void Main()
{
ThreadStart threadStart = new ThreadStart(DoWork);
Thread thread = new Thread(threadStart);
thread.Start();
for (int count = 0; count < Repetitions; count++)
{
using System.Threading;
public class MainClass
{
public const int Repetitions = 1000;
public static void Main()
{
ThreadStart threadStart = new ThreadStart(DoWork);
Thread thread = new Thread(threadStart);
thread.Start();
for (int count = 0; count < Repetitions; count++)
{