how to get current thread id in c# code example
Example: c# current thread id
using System.Threading;
var curThread = Thread.CurrentThread.ManagedThreadId;
Console.WriteLine($"The current thread is: {curThread}");
using System.Threading;
var curThread = Thread.CurrentThread.ManagedThreadId;
Console.WriteLine($"The current thread is: {curThread}");