R
rgliane
I have a method in a common class library that reads the application config
file. If the library is used by a Windows app, it should use
ConfigurationManager to read the app.config file. If the library is used by
a Web app, it should use WebConfigurationManager to read the web.config file.
Is there a programmatic way to determine what kind of app is running? Or is
there another approach to handle this kind of thing?
file. If the library is used by a Windows app, it should use
ConfigurationManager to read the app.config file. If the library is used by
a Web app, it should use WebConfigurationManager to read the web.config file.
Is there a programmatic way to determine what kind of app is running? Or is
there another approach to handle this kind of thing?