public static string GetString(string name, params object[] args)
        {
            var loader = ResourcesAccess.GetLoader();

            if (loader == null)
            {
                return((string)null);
            }
            string format = loader.resources.GetString(name, ResourcesAccess.Culture);

            if (args == null || args.Length == 0)
            {
                return(format);
            }
            for (int index = 0; index < args.Length; ++index)
            {
                string str = args[index] as string;
                if (str != null && str.Length > 1024)
                {
                    args[index] = (object)(str.Substring(0, 1021) + "...");
                }
            }
            return(string.Format((IFormatProvider)CultureInfo.CurrentCulture, format, args));
        }
 public static object GetObject(string name)
 {
     return(ResourcesAccess.GetLoader()?.resources.GetObject(name, ResourcesAccess.Culture));
 }
 public static string GetString(string name)
 {
     return(ResourcesAccess.GetLoader()?.resources.GetString(name, ResourcesAccess.Culture));
 }