Skip to content

Instantly share code, notes, and snippets.

@mausch
Created January 7, 2015 00:20
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 mausch/758f1bc7a6d6877229a2 to your computer and use it in GitHub Desktop.
Save mausch/758f1bc7a6d6877229a2 to your computer and use it in GitHub Desktop.
using System;
static class L {
public static Func<T> F<T>(Func<T> f) { return f; }
// add overloads for other arities
}
class Program {
static void Main(string[] args) {
int i = L.F(() => 0)();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment