20210430
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SgManager.AI
|
||||
{
|
||||
public class ConfigAppSetting
|
||||
{
|
||||
public static double getConfigAppSetting(String name)
|
||||
{
|
||||
try
|
||||
{
|
||||
return Convert.ToDouble(System.Configuration.ConfigurationManager.AppSettings[name]);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user