static void Main(string[] args) { for (int i = 0; i < 100; i++) { Thread t = new Thread(() => { Console.WriteLine(Calc(10, NonZeroInt.New((2)))); }); t.Start(); } Console.Read(); }
public static int Calc(int numerator, NonZeroInt value) { return(numerator / value.Value); }