I'm trying to make an assembly which I can use in mutliple programs. The assembly contains a huge amount of countries and a huge amount of towns in that country. the data for countries is not much of a problem because I only count 249 countries but I also have huge amount of data for towns.
For example france has nearly 50.000 towns. Belgium has nearly 2500 towns. United kingdom nearly 150.000 towns. ...
I already have all the data I need but my problem is. I have no idea how to store the data in my assembly. - I tried XML but loading the xml give me performance issues. It takes to long to load the data. - I tried a MS Access database but then the data is store in a database outside my assembly while I try to keep the data inside my assembly. which means thats not my solution to. - I tried loading the data directly in an array in my script but then my visual studio keep loading all day long checking the data I entered but I can't work with it anymore
Anyone can give me a way to store data in my assembly without having these performance issues?
Any help is welcome.
I work with visual studio 2010 in the language C#