Hi,
Using C# Express & Sharpdevelop.
Is there a way of knowing which thread your in when creating a project/code ?
Either using some part of the IDE or some code that I add to my code?
Or is it obvious when experienced at C#, just looking at the code?
Any tips!
Thanks
Regards
Gary
How can I tell which thread I am on?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mamta MRank #268 · 9.4K reputationPosted Dec 12, 2010, 7:18 PM EST
Console.WriteLine(Thread.CurrentThread.Name);
you will need to import the Threading namespace as follows:
using System.Threading;