I’m trying to develop an application for my final year project. Currently I have the presentation layer where I have the UI stuff like forms. Now I’ve went ahead and added class library to the project and added a class Employee in the new project.
Now When I try to make an object
Employee emp = new Employee();
c# returns an error saying i’m missing some names space or type etc :((
How can this be solved?
Make sure that you have added a reference to the class library in your presentation layer‘s project. Then try to import the
namespacewhich contains theEmployeeclass in your code file as the following:You can also use the fully qualified name of the
Employeetype as the following:Refer to the following
namespace (C# Reference)
using Directive (C# Reference)