示例#1
0
        public static string GetString(string name)
        {
            Common.Web.UI.SR loader = GetLoader();
            string           str    = null;

            if (loader != null)
            {
                str = loader.Resources.GetString(name, null);
            }
            return(str);
        }
示例#2
0
 private static Common.Web.UI.SR GetLoader()
 {
     if (_loader == null)
     {
         lock (_lock)
         {
             if (_loader == null)
             {
                 _loader = new Common.Web.UI.SR();
             }
         }
     }
     return(_loader);
 }