예제 #1
0
    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));
    }
예제 #2
0
    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);
    }
예제 #3
0
    public static int Main()
    {
        ThreadStartInt tsi = new ThreadStartInt();

        return(tsi.Run());
    }
예제 #4
0
 public static int Main()
 {
     ThreadStartInt tsi = new ThreadStartInt();
     return tsi.Run();
 }