26 lines
553 B
C#
26 lines
553 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Configuration;
|
|
|
|
namespace SavePDF
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class UtilityManager
|
|
{
|
|
|
|
|
|
//System.IO.Packaging
|
|
public static string getAppSetting(string chiave) {
|
|
string valore = "" + ConfigurationManager.AppSettings[chiave];
|
|
|
|
if (valore == string.Empty)
|
|
throw new Exception("Nel file di configurazione non è presente la chiave: " + chiave);
|
|
|
|
return valore;
|
|
}
|
|
}
|
|
}
|