Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created February 12, 2014 21:09
Show Gist options
  • Select an option

  • Save kumpera/8964570 to your computer and use it in GitHub Desktop.

Select an option

Save kumpera/8964570 to your computer and use it in GitHub Desktop.
using System;
using System.Reflection;
class Base {
internal void Foo () {}
}
class Child {
internal void Bar () {}
}
class Driver {
static void Main ()
{
var all = typeof(Child).GetMethods (BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static );
foreach (var m in all)
Console.WriteLine (m);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment