¡@

Home 

c# Programming Glossary: configfilename

Read custom configuration file in C# (Framework 4.0)

http://stackoverflow.com/questions/6341906/read-custom-configuration-file-in-c-sharp-framework-4-0

The configuration file name private readonly string _configFileName summary Raises when the configuraiton file is modified summary.. when the configuration file changes. summary param name configFileName The full path to the custom configuration file param public.. file param public CustomConfigurationFileReader string configFileName this configFileName DEFAULT_NOTIFY_BEHAVIOUR summary Initialize..

How to catch exceptions

http://stackoverflow.com/questions/9526139/how-to-catch-exceptions

public int GetValueFromConfigurationFile ... const string configFileName ... try ... catch FileNotFoundException fEx throw new InvalidOperationException.. String.Format Can't find configuration file 0 configFileName fEx In this case you are catching a specific exception FileNotFoundException..