Skip to content

Instantly share code, notes, and snippets.

@dvdsgl
Created September 4, 2013 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvdsgl/6444045 to your computer and use it in GitHub Desktop.
Save dvdsgl/6444045 to your computer and use it in GitHub Desktop.
using System;
namespace Foo
{
class MainClass
{
static void Go (Action<int> act)
{
act (1);
}
public static void Main (string[] args)
{
Go (delegate {
Console.WriteLine ("Hello World!");
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment