25 lines
		
	
	
		
			509 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			509 B
		
	
	
	
		
			C#
		
	
	
	
| 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;
 | |
|             }
 | |
| 
 | |
|         }
 | |
|     }
 | |
| }
 |