Skip to content

Instantly share code, notes, and snippets.

@JakeGinnivan
Created July 2, 2013 05:30
Show Gist options
  • Select an option

  • Save JakeGinnivan/5906969 to your computer and use it in GitHub Desktop.

Select an option

Save JakeGinnivan/5906969 to your computer and use it in GitHub Desktop.
private static void BrokenDynamic()
{
IFoo foo = new Foo();
var method = typeof(IFoo).GetMethod("Bar");
string d = "test";
method.Invoke(foo, new[]{d});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment