Y
Yanir
Hello,
I am currently designing a framework for rapid .NET development of
ASP.NET applications.
We are concidering keeping our error messages and other string
constants outside the code with some sort of a resource manager.
We are already using Microsoft's Configuration Application Block to
store other attributes of our application.
Should I use ResourceManager in order to store my string constants or
should I use ConfigurationManager (from the application block)?
I know that ResourceManager specializes in keeping application
resources, but what exactly is the difference?
The way I see it, the configuration manager is able to extract strings
out of an XML file just as well as the resource manager. If we would
want to change the culture we could simply write a new XML file and
direct the configuration manager to that file instead.
It also supports caching of the configuration data, and I actually see
no problem with using it to hold all of our string constants.
Any information on the subject would be very helpful.
Thanks in advance,
Yanir
I am currently designing a framework for rapid .NET development of
ASP.NET applications.
We are concidering keeping our error messages and other string
constants outside the code with some sort of a resource manager.
We are already using Microsoft's Configuration Application Block to
store other attributes of our application.
Should I use ResourceManager in order to store my string constants or
should I use ConfigurationManager (from the application block)?
I know that ResourceManager specializes in keeping application
resources, but what exactly is the difference?
The way I see it, the configuration manager is able to extract strings
out of an XML file just as well as the resource manager. If we would
want to change the culture we could simply write a new XML file and
direct the configuration manager to that file instead.
It also supports caching of the configuration data, and I actually see
no problem with using it to hold all of our string constants.
Any information on the subject would be very helpful.
Thanks in advance,
Yanir