31 lines
749 B
C#
31 lines
749 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Configuration;
|
|
|
|
public class UtilityManager
|
|
{
|
|
public static string getAppSetting(string chiave)
|
|
{
|
|
|
|
|
|
#region changeNo1_glossario
|
|
|
|
if (ConfigurationManager.AppSettings[chiave] != null)
|
|
return ConfigurationManager.AppSettings[chiave];
|
|
return String.Empty;
|
|
|
|
// 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 "";
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|