Component and Class library

  • Thread starter Thread starter Chakra
  • Start date Start date
C

Chakra

Can any one tell me what is the diference between a component and a class
library in .NET ? We can add a component to a class library , but then the
contents of the component could as well have been packaged in the class
library itself ?

Regards,

Chak.
 
In .NET, a component is a class that implements
System.ComponentModel.IComponent, usually, but not necesarily, by inheriting
from System.ComponentModel.Component.

A class library is a module (usually with .dll extension) that contains non
UI classes. A class library, nevertheless, can contain any number of
resources and/or classes of any type. When a library contains visual classes
(classes that inherit from Control or Form), it is usually called "Control
Library" instead of a "Class Library", but that is only a difference in how
you call them.

Hope it helps
 
Back
Top