Exemplo n.º 1
0
 static HtmlHelper()
 {
     if (_config == null)
     {
         lock (ConfigLock)
         {
             if (_config == null)
             {
                 _config = (FatConfigSection) ConfigurationManager.GetSection("fatConfig");
             }
         }
     }
 }
        public static object GetEvalData(string expression, Type target, string entry)
        {
            if (_config == null)
            {
                lock (ConfigLock)
                    if (_config == null)
                        _config = (FatConfigSection)ConfigurationManager.GetSection("fatConfig");
            }

            try
            {
                return _config.Get(expression);
            }
            catch (Exception)
            {
                return "fat expression builder cannot find expression";
            }
        }