Component and Class library

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.
 
F

Francisco Garcia Gomez

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top