In Main () code to call a function I have many classes that should work through Thread, for example:
//да что показывать всё просто в programs вызываю в Main все необходимые классы!) using System; using System.Threading; namespace Test { internal class Program { static void Main(string[] args) { Thread s = new Thread(class.Go); s.Start(); Thread s = new Thread(class2.Go); s.Start(); Thread s = new Thread(class3.Go); s.Start(); Thread s = new Thread(class4.Go); s.Start(); Thread s = new Thread(class5.Go); s.Start(); } } } To not write so much for each class, how can this be done better?