Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created May 3, 2012 16:26
Show Gist options
  • Save tnngo2/2586982 to your computer and use it in GitHub Desktop.
Save tnngo2/2586982 to your computer and use it in GitHub Desktop.
using System;
namespace Theory_9
{
class Parameters
{
delegate void Display(string msg, int num);
static void Main(string[] args)
{
Display objDisplay = delegate(string msg, int num)
{
Console.WriteLine(msg + num);
};
objDisplay("Alex : ", 80);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment