I have a few differenet namespaces in my solution and I want to use an object called "Doctor" from namespece BL_Backend inside another namespace called DAL. I've tried adding a Refference to DAL (a refference for BL_Backend), and then adding "using BL_Backend;" but it wouldn't work. still classes such as Doctor won't appear as known ones inside namespace DAL.
namespace BL_Backend
{
…
namespace DAL
{
…
//Here create object as "Doctor" for BL_Backend class
}
}
For example, when i call a constructor of a doctor from DAL it says this constructor does not exists but when i write the exact same command at namespace bl_backend it works fine.
thanks alot!
namespacewhen in fact you're probably referring toassemblys. Assemblies and namespaces are two separate concepts in .NET. A single assembly (something you can reference) may contain multiple types in multiple namespaces. And the types within a single namespace may come from multiple assemblies. That's why, in all the MSDN documentation for framework types, you'll find both the namespace and the assembly listed.