• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

reflection quickie

hi

i am running the following code:

 Assembly assembly = Assembly.Load(assemblyName);
 Type[] types = assembly.GetTypes();

            foreach (Type type in types)
            {
                if (type.BaseType != null)
                {

                 //do some things

                }
            }


is there a nice way to test if the object named "type" is an abstract class or a concrete class.

cheers
0
MrKevorkian
Asked:
MrKevorkian
1 Solution
 
der_jthCommented:
Well... type.IsAbstract?
0
 
MrKevorkianAuthor Commented:
ha ha!  

that will do the job!!

thanks
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now