public static int Main(string[] args) { // check args if (args.Length != 1) { Console.WriteLine("USAGE: ThreadStartInt <int>|min|max\n"); return(-1); } int i = 0; // check for max or min if (args[0].ToLower() == "max") { i = Int32.MaxValue; } else if (args[0].ToLower() == "min") { i = Int32.MinValue; } else { i = Convert.ToInt32(args[0]); } ThreadStartInt tsi = new ThreadStartInt(); return(tsi.Run(i)); }
public static int Main(string[] args) { // check args if(args.Length != 1) { Console.WriteLine("USAGE: ThreadStartInt <int>|min|max\n"); return -1; } int i = 0; // check for max or min if(args[0].ToLower() == "max") i = Int32.MaxValue; else if(args[0].ToLower() == "min") i = Int32.MinValue; else i = Convert.ToInt32(args[0]); ThreadStartInt tsi = new ThreadStartInt(); return tsi.Run(i); }
public static int Main() { ThreadStartInt tsi = new ThreadStartInt(); return(tsi.Run()); }
public static int Main() { ThreadStartInt tsi = new ThreadStartInt(); return tsi.Run(); }