CommandClass Attribute
§Can be declared for any class that defines commands.
§If used, this attribute is needed for every class that adds commands
§VB.NET:
<Assembly: CommandClass(GetType(CmdClass))>
§C#:
[assembly: CommandClass(typeof(CmdClass))]
In addition to searching for an IExtensionApplication implementation, AutoCAD will also query the assembly for one or more CommandClass attributes. If instances of this attribute are found, AutoCAD searches only their associated types for command methods. Otherwise, it searches all exported types so using this attribute can also save time loading a large .NET. Here you see the signature for this assembly attribute.