Tuesday, November 22, 2011

C#: Delegate

Here is a simple example of using delegate in C# and it just likes a function pointer in the following code:

  class Demo
    {
        static void Main(string[] args)
        {
            DemoDelegate.process();

            Console.ReadLine();
        }
    }

No comments:

Post a Comment