Created
February 13, 2014 04:53
-
-
Save alexandrnikitin/8969922 to your computer and use it in GitHub Desktop.
Dynamic and extension method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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