I am using one base dll named as KSWeb.dll. It has main namespace is KSWeb.This dll has main Base class Under KSWeb.KSS.Base.
Now I have added this as reference in of one of the class library project. I want to give namespace to this class library also KSWeb.I have added a new class named as NewCK which inherits from KSWeb.KSS.Base.
When I am doing coding means KSWEB and then process dot(.) then it can found KSS and then found Base also.
My problem is when I build this class library then it gives me error like KSWEB.KSS not found and then I press alter + tab KSWEB.KSS not found.
Why is it so? please refere below code.
Now in this class library project I have create a class like
namespace KSWeb
{
partial class NewCK : KSWeb.KSS.Base
{
}
}
for my point of view it is compulsory to use KSWEB namespace in class library Please suggest in c#.net or in vb.net.
//Use a namespace alias
using Other = KSWeb.KSS;
namespace KSWeb
{
partial class NewCK : Base
{
//You can now use Other as below
Other.Method();
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.