Ejemplo n.º 1
0
        internal static String GetResourceString(String key, params Object[] values)
        {
            if (SystemResMgr == null)
            {
                InitResourceManager();
            }
            String s = SystemResMgr.GetString(key, null);

            InternalST.SoapAssert(s != null, "Managed resource string lookup failed.  Was your resource name misspelled?  Did you rebuild mscorlib after adding a resource to resources.txt?  Debug this w/ cordbg and bug whoever owns the code that called Environment.GetResourceString.  Resource name was: \"" + key + "\"");
            return(String.Format(s, values));
        }
Ejemplo n.º 2
0
        // Looks up the resource string value for key.
        //
        internal static String GetResourceString(String key)
        {
            if (SystemResMgr == null)
            {
                InitResourceManager();
            }
            String s = SystemResMgr.GetString(key, null);

            InternalST.SoapAssert(s != null, "Managed resource string lookup failed.  Was your resource name misspelled?  Did you rebuild the SoapFormatter and SoapFormatter.resource after adding a resource to SoapFormatter.txt?  Debug this w/ cordbg and bug whoever owns the code that called SoapUtil.GetResourceString.  Resource name was: \"" + key + "\"");
            return(s);
        }