Skip to content

Instantly share code, notes, and snippets.

@plioi
Created December 13, 2013 14:13
Show Gist options
  • Save plioi/7944838 to your computer and use it in GitHub Desktop.
Save plioi/7944838 to your computer and use it in GitHub Desktop.
var instance = new Thing();
var method = typeof(Thing).GetMethod("GenericMethod");
method.Invoke(instance, new object[] { 1 });
method.Invoke(instance, new object[] { true });
method.Invoke(instance, new object[] { "Cantaloupe Pantaloons" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment