public static int Main(string[] args) { // check args if (args.Length != 1) { Console.WriteLine("USAGE: ThreadStartSByte <int>|min|max\n"); return(-1); } sbyte b = 0x0; // check for max or min if (args[0].ToLower() == "max") { b = SByte.MaxValue; } else if (args[0].ToLower() == "min") { b = SByte.MinValue; } else { b = Convert.ToSByte(args[0]); } ThreadStartSByte tsb = new ThreadStartSByte(); return(tsb.Run(b)); }
public static int Main(string[] args) { // check args if(args.Length != 1) { Console.WriteLine("USAGE: ThreadStartSByte <int>|min|max\n"); return -1; } sbyte b = 0x0; // check for max or min if(args[0].ToLower() == "max") b = SByte.MaxValue; else if(args[0].ToLower() == "min") b = SByte.MinValue; else b = Convert.ToSByte(args[0]); ThreadStartSByte tsb = new ThreadStartSByte(); return tsb.Run(b); }