S
Søren Reinke
Hi there
I have a problem, with key/value pairs in web.config.
The value is sometimes a boolean, sometimes an integer and sometimes a
string and so on.
Do i need to make a method for each type ?
Or can i use generics ?
I would like to be able to do something like:
Integer age=getConfigValue("KeyName",17); //name,default value if something
fails)
Boolean productionServer=getConfigValue("onProductionServer",false);
And more like that.
I have a problem, with key/value pairs in web.config.
The value is sometimes a boolean, sometimes an integer and sometimes a
string and so on.
Do i need to make a method for each type ?
Or can i use generics ?
I would like to be able to do something like:
Integer age=getConfigValue("KeyName",17); //name,default value if something
fails)
Boolean productionServer=getConfigValue("onProductionServer",false);
And more like that.