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.

  1. create class library project.
  2. give proper namespace
  3. write library classes, compile dll
  4. then add reference dll in other project want use in
  5. add using statement include reference in code files.

pretty straightforward


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -