Is it a good practice to load configuration data for a application through the use of Resources ?
Please let me know.
I am actually working with the Robotics studio and I don't think there is 开发者_Go百科any other way of loading a configuration.
Depending on the data you want to load, you could use the Application Settings features of .NET.
Application settings enable you to store and retrieve property settings and other information for your application dynamically. They also enable you to maintain custom application and user preferences on the client computer.
If you want to load a large amount of data, then resources (external or embedded) might be a better idea.
if you are talking about embedded resources compiled inside the executable or the assembly surely is not a good idea because whenever you need to change the configuration you would need to recompile/build and deploy again.
Configuration should be in config files or database so you can easily react to changes in your environment without building and deploy again.
精彩评论