Created
November 6, 2012 18:29
-
-
Save peteraritchie/4026564 to your computer and use it in GitHub Desktop.
crazy dynamic code
This file contains hidden or 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
private static bool IsListInternal(object obj) | |
{ | |
return false; | |
} | |
private static bool IsListInternal<T>(List<T> obj) | |
{ | |
return true; | |
} | |
public static bool IzMyType(object me) | |
{ | |
dynamic v = me; | |
return IsListInternal(v); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment