using System; using System.Collections.Generic; using System.Text; using System.Configuration; namespace LogFilePDF { class UtilityManager { public static string getAppSetting(string chiave) { string valore = "" + ConfigurationManager.AppSettings[chiave]; if (valore != string.Empty) return valore; else throw new Exception("Nel file di configurazione non è presente la chiave: " + chiave); return ""; } } }