Bind several classes into one .dll file in C# -
a beginner's question. c#. let's have 3 classes in 1 project named employee, department, address. reason, have .dll file (let's name test.dll) have 3 classes included can call other project using syntax "test.employee emp1 = new test.employee();" idea. possible? if yes, how should that? have create class library project so? know nothing class library project. may need further that. if answer no, how add references classes other solutions? thanks.
- create class library project.
- give proper namespace
- write library classes, compile dll
- then add reference dll in other project want use in
- add
using
statement include reference in code files.
pretty straightforward
Comments
Post a Comment