[Solved] Check if a class is public or private
Since you already determined the type (typeof(Jedi)) you are almost there. The Type class has two properties: IsPublic and IsNonPublic. You can use them to determine the access mode of your types: public class Public { } internal class Program { private class Private { } [STAThread] private static void Main(string[] args) { Private pr … Read more