src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignPackage.cs
/// <summary>
///     This method loads a localized string based on the specified resource.
/// </summary>
/// <param name="resourceName">Resource to load</param>
/// <returns>String loaded for the specified resource</returns>
This method loads a localized string based on the specified resource.
This method loads a localized string based on the specified resource .
[SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", MessageId = "SVsResourceManager")]
        public string GetResourceString(string resourceName)
        {
            string resourceValue;
            var resourceManager = (IVsResourceManager)GetService(typeof(SVsResourceManager));
            if (resourceManager == null)
            {
                throw new InvalidOperationException(
                    "Could not get SVsResourceManager service. Make sure the package is Sited before calling this method");
            }
            var packageGuid = GetType().GUID;
            var hr = resourceManager.LoadResourceString(ref packageGuid, -1, resourceName, out resourceValue);
            ErrorHandler.ThrowOnFailure(hr);
            return resourceValue;
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] public string GetResourceString ( string resourceName ) { string resourceValue ; var resourceManager = ( IVsResourceManager ) GetService ( typeof ( SVsResourceManager ) ) ; if ( resourceManager == null ) { throw new InvalidOperationException ( " " ) ; } var packageGuid = GetType ( ) . GUID ; var hr = resourceManager . LoadResourceString ( ref packageGuid , - 1 , resourceName , out resourceValue ) ; ErrorHandler . ThrowOnFailure ( hr ) ; return resourceValue ; }
This method loads a localized string based on the specified resource.
This method loads a localized string based on the specified resource .
String loaded for the specified resource
String loaded for the specified resource
resourceName
string
Resource to load
Resource to load