using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Kilo.Test
{
class threadtest2
{
// [ComVisibleAttribute(false)]
public delegate void ParameterizedThreadStart(Object obj);
public static void myStaticParamThreadMethod(Object obj)
{
Console.WriteLine(obj);
for (int i =0 ;i<100 ; i++ )
{
Console.Write("#");
System.Threading.Thread.Sleep(100);
}
}
static void Main(string[] args)
{
Thread thread = new Thread(myStaticParamThreadMethod);
thread.Start("通?委托的???值");
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Kilo.Test
{
class threadtest2
{
// [ComVisibleAttribute(false)]
public delegate void ParameterizedThreadStart(Object obj);
public static void myStaticParamThreadMethod(Object obj)
{
Console.WriteLine(obj);
for (int i =0 ;i<100 ; i++ )
{
Console.Write("#");
System.Threading.Thread.Sleep(100);
}
}
static void Main(string[] args)
{
Thread thread = new Thread(myStaticParamThreadMethod);
thread.Start("通?委托的???值");
Console.ReadLine();
}
}
}