Skip to content

Instantly share code, notes, and snippets.

@josephwoodward
Created May 7, 2015 13:08
Show Gist options
  • Save josephwoodward/c5530a35eff30b98f0d3 to your computer and use it in GitHub Desktop.
Save josephwoodward/c5530a35eff30b98f0d3 to your computer and use it in GitHub Desktop.
internal class Program
{
private static void Main(string[] args)
{
var myClass = new ExpressionTest();
// Ambig.
myClass.TestMethod(myExpression1:x => x.ToString());
//myClass.TestMethod();
}
}
public class ExpressionTest
{
public void TestMethod(Expression<Action<int>> myExpression1)
{
}
public void TestMethod(Action<int> myExpression2)
{
}
/*public void TestMethod(Action myExpression)
{
}*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment