Hi! i have created a class library project, and try to use it in my new C# proj through a refrence dll file, but it generate an error that "constructor Employee not defined" can anyone help ???? Class Library Code Code: public class Employee { public int ID; public string name;public string fname; Employee() { ID = 0;name = "; fname = ""; } Employee(int _id, string _name, string _fname) { ID = _id;name = _name;fname = _fname; } } public class Employeelist { List<Employee> emplist = new List<Employee>(); void EmployeeADD(Employee e) { emplist.Add(e);}
In my new App, where i have added the reference of the Class library, the EmployeeList instance can be created but when create an instance of Employee class it produce error: constructor Employee not defined Can anyone help me???