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
LVL 1
MrKevorkianAsked:
Who is Participating?
 
der_jthCommented:
Well... type.IsAbstract?
0
 
MrKevorkianAuthor Commented:
ha ha!  

that will do the job!!

thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.