You can use Assembly.GetExportedTypes() to iterate
all the class types in your assembly, and examine their
bases to determine if one derives from your abstract
class.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
wrote in message news:5236743@discussion.autodesk.com...
I should have explained in more detail... Yes, a simple GetType(ClassName) would work perfectly. Unfortunately, that defeats the purpose... What I am attempting to do is to create an abstract class for my commands, and that class would deal with marking an abstract method "Execute" as the CommandMethod. That way, when the Command class I am creating is inherited, the inheriting class doesnt have to mark the "Execute" method itself.
Therefore, since this code exists in the abstract class, I need to find a way to reference the type that is inheriting it, not the abstract class.
Therefore, I am not sure if it is possible for the base class to add an attribute to the inherited class before AutoCAD examines the assembly for attributes.
Is there any way to register a command without using attributes?
Thanks,
Scott