Ejemplo n.º 1
0
    public static int Main(string[] args)
    {
        // check args
        if (args.Length != 1)
        {
            Console.WriteLine("USAGE: ThreadStartULong <ulong>|min|max\n");
            return(-1);
        }

        ulong l = 0;

        // check for max or min
        if (args[0].ToLower() == "max")
        {
            l = UInt64.MaxValue;
        }
        else if (args[0].ToLower() == "min")
        {
            l = UInt64.MinValue;
        }
        else
        {
            l = Convert.ToUInt64(args[0]);
        }

        ThreadStartULong tsl = new ThreadStartULong();

        return(tsl.Run(l));
    }
Ejemplo n.º 2
0
    public static int Main(string[] args)
    {
        // check args
        if(args.Length != 1)
        {
            Console.WriteLine("USAGE: ThreadStartULong <ulong>|min|max\n");
            return -1;
        }

        ulong l = 0;
        // check for max or min
        if(args[0].ToLower() == "max")
            l = UInt64.MaxValue;
        else if(args[0].ToLower() == "min")
            l = UInt64.MinValue;       
        else
            l = Convert.ToUInt64(args[0]);

        ThreadStartULong tsl = new ThreadStartULong();
        return tsl.Run(l);
    }