Skip to content

Instantly share code, notes, and snippets.

@alexandrnikitin
Created February 13, 2014 04:53
Show Gist options
  • Save alexandrnikitin/8969922 to your computer and use it in GitHub Desktop.
Save alexandrnikitin/8969922 to your computer and use it in GitHub Desktop.
Dynamic and extension method
public static class Program
{
public static void Main(string[] args)
{
dynamic a = 1;
MethodWithDynamic(a).Extension();
}
public static int MethodWithDynamic(dynamic a)
{
return 1;
}
public static void Extension(this int i)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment