Refrence adding problem

Carlos's Avatar, Join Date: Dec 2008
Contributor
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);}
0
Carlos's Avatar, Join Date: Dec 2008
Contributor
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???
0
sameer_havakajoka's Avatar
Skilled contributor
Mridula might be able to help, I have seen so many article of her in c/c++
0
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Quote:
Originally Posted by sameer_havakajoka View Post
Mridula might be able to help, I have seen so many article of her in c/c++
Dude, C/C++ and C#(.NET) are different