using System;
using System.Threading;
namespace ParameterizedThreadStartTest
{
    
class Program
    
{
        
static void Main(string[] args)
        
{

            ParameterizedThreadStart myParameterizedThreadDelegate 
= new ParameterizedThreadStart(ThreadMethod);
            Thread myThread 
= new Thread(myParameterizedThreadDelegate);
            
object o = "hello";
            myThread.Start(o);

        }


        
private static void ThreadMethod(object o)
        
{
            
string str = o as string;
            Console.WriteLine(str);
        }

    }

}
posted on 2007-08-22 17:37  自由港  阅读(216)  评论(0编辑  收藏  举报