Skip to content

Instantly share code, notes, and snippets.

@peteraritchie
Created November 6, 2012 18:29
Show Gist options
  • Save peteraritchie/4026564 to your computer and use it in GitHub Desktop.
Save peteraritchie/4026564 to your computer and use it in GitHub Desktop.
crazy dynamic code
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