Exemplo n.º 1
0
	static void Main(String[] args) 
	{  
		if (args.Length > 0){
			 HiloDelegado h1 = new HiloDelegado();
			 Thread t = new Thread (delegate()
			 {
				h1.Escribir(args[0]);				
			 });
			 t.Start();
		}else
			Console.WriteLine("Parámetros incorrectos!!");
	}
Exemplo n.º 2
0
	static void Main(String[] args) 
	{  

		if (args.Length > 0){
			string nombre = args[0];
			 HiloDelegado h1 = new HiloDelegado();
			 Thread t = new Thread (delegate()
			 {
				h1.Escribir(nombre);	
			 });
			 nombre = "no definido";
			 t.Start();
		}else
			Console.WriteLine("Parámetros incorrectos!!");
	}
Exemplo n.º 3
0
 static void Main(String[] args)
 {
     if (args.Length > 0)
     {
         HiloDelegado h1 = new HiloDelegado();
         Thread       t  = new Thread(delegate()
         {
             h1.Escribir(args[0]);
         });
         t.Start();
     }
     else
     {
         Console.WriteLine("Parámetros incorrectos!!");
     }
 }
Exemplo n.º 4
0
 static void Main(String[] args)
 {
     if (args.Length > 0)
     {
         string       nombre = args[0];
         HiloDelegado h1     = new HiloDelegado();
         Thread       t      = new Thread(delegate()
         {
             h1.Escribir(nombre);
         });
         nombre = "no definido";
         t.Start();
     }
     else
     {
         Console.WriteLine("Parámetros incorrectos!!");
     }
 }