I have a solution with two projects. One namespace is MarketplaceWebServiceOrders and the other is MarketsplaceWebServiceOrders.Sample. I have public interface in the MarketplaceWebServiceOrders called MarketplaceWebServiceOrders. My main function is in MarketplaceWebServiceOrders.Sample and whenever I try to use the interface MarketplaceWebServiceOrders I get Error: MarketplaceWebServiceOrders.Samples.MarketplaceWebServiceOrders is namespace used use like a type.
I actually have this program compiled and running but I need to make changes and this popped up.
In this case you can access your interface specifying full name with namespace:
Anyway, your naming looks wrong. You are probably misusing namespaces – they should “categorize” types, no need to have type name the same as namespace. Moreover, interfaces are prefixed with
Iletter by good convention.