This question isn't specific to MapPoint, but I'm posting here because the problem arose from working with MapPoint and it is a possibility that some of you may have encountered this before.
I have a VB6 application that has a bunch of user controls. The business end of one of these coutrols (its an address search field) needs to be replaced (among other things, we want to leverage MapPoint's data). The user control must be coded in a .NET language (I settled on C#). Keeping with the spirit of OOP I just want to implement the existing interface and just plug in this new control.
The control itself "has a" data source (MapPoint + some SQL databases). The application will be deployed in several countries. The problem I ran into is that I cannot specify wich country I want to limit my searches to without importing the MapPoint library. I want to expose the GeoCountry enumeration in the same namespace as my data source classes.
To sum up the problem: Is it possible to alias a type from one namespace into another namespace and make that alias a type of its own?
I've already coded a workaround. I made an uint enumeration that has all of the countries and the values are the MapPoint equvalents casted to uint. In the event that the list of coutries, their values, or their names change in future versions, I do not want to recode this list.