I have an order entry app that I have divided into three UI, Data, and Business tiers. The root namespace is named Order. These namespaces are as follows:
The problem that I have is in trying to reference the business order class from inside the user interface:
The compiler is confused as to whether I am tring to reference a static method called Business in the Order.Interface.Order class or if I am trying to declare an Order.Business.Order class.
Does anyone know if there is a special delimiter or some such trivia in the lexicography of C# that indicates you are talking about a namespace and not a class or some shorthand for the root or default namespace?
For example something along the lines of
[Order.Business].Order
or
_Order.Business.Order???
Code:
namespace Order.Business {
class Order {
//Business logic here
}
}
namespace Order.Data {
class Order {
//Database interaction and queries here
}
}
namespace Order.Interface {
class Order : System.Windows.Form {
//User interface for working with an order
}
}
The problem that I have is in trying to reference the business order class from inside the user interface:
Code:
//This is inside Order.Interface.Order
Order.Business.Order m_busOrder = new Order.Business.Order();
The compiler is confused as to whether I am tring to reference a static method called Business in the Order.Interface.Order class or if I am trying to declare an Order.Business.Order class.
Does anyone know if there is a special delimiter or some such trivia in the lexicography of C# that indicates you are talking about a namespace and not a class or some shorthand for the root or default namespace?
For example something along the lines of
[Order.Business].Order
or
_Order.Business.Order???