Anonymous Methods : Anonymous delegate : Delegate C# Examples


C# Examples » Delegate » Anonymous delegate »

 

Anonymous Methods









    
using  System;
using  System.Threading;


public  delegate  void  DelegateClass();

public  class  Starter  {
        public  static  void  Main()  {
                DelegateClass  del  =  delegate  {
                        Console.WriteLine("Running  anonymous  method");
                };
                del();
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Delegate
» Anonymous delegate