src/MVCContrib/PortableAreas/AssemblyResourceLocator.cs
/// <summary>
/// From the virtual path received, look for the associated embedded resource and returns if exists. <para/>
/// This method supports both C# and VB embedded resource.
/// </summary>
/// 
/// <remarks>
/// This method looks first for a standard embedded resource (C#) and second for an embedded resource
/// with the same name, but anywhere in the subnamespace structure (VB).
/// </remarks>
/// 
/// <param name="path">
/// The virtual path of a resource
/// </param>
/// <param name="resourceName">
/// Returns the real embedded resource name associated to the virtual resource path.
/// </param>
From the virtual path received, look for the associated embedded resource and returns if exists.

This method supports both C# and VB embedded resource.
From the virtual path received look for the associated embedded resource and returns if exists . This method supports both C# and VB embedded resource .
public bool TryGetActualResourceName(string path, out string resourceName)
        {
            bool exists;
            resourceName = GetFullyQualifiedTypeFromPath(path);
            exists = (ResourcesContainsType(resourceName) ||
                      TryGetPartialResourceName(path, ref resourceName));
            if (exists)
                resourceName = resources[resourceName];
            return exists;
        }
public bool TryGetActualResourceName ( string path , out string resourceName ) { bool exists ; resourceName = GetFullyQualifiedTypeFromPath ( path ) ; exists = ( ResourcesContainsType ( resourceName ) || TryGetPartialResourceName ( path , ref resourceName ) ) ; if ( exists ) resourceName = resources [ resourceName ] ; return exists ; }
From the virtual path received, look for the associated embedded resource and returns if exists.
From the virtual path received look for the associated embedded resource and returns if exists .
path
string
The virtual path of a resource
The virtual path of a resource
string
out
resourceName
Returns the real embedded resource name associated to the virtual resource path.
Returns the real embedded resource name associated to the virtual resource path .
remarks
This method looks first for a standard embedded resource (C#) and second for an embedded resource
with the same name, but anywhere in the subnamespace structure (VB).
This method looks first for a standard embedded resource ( C# ) and second for an embedded resource with the same name but anywhere in the subnamespace structure ( VB ) .