通过本文主要向大家介绍了c#单例模式例子,c#窗体应用程序例子,c#回调函数例子,c#例子,c#经典例子等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
// Create a delegate.
delegate void Del(int x);
// Instantiate the delegate using an anonymous method.
Del d = delegate(int k) { /* ... */ };
void StartThread()
{
System.Threading.Thread t1 = new System.Threading.Thread
(delegate()
{
System.Console.Write("Hello, ");
System.Console.WriteLine("World!");
});
t1.Start();
}
</div>