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