src/MVCContrib/PortableAreas/AssemblyResourceLocator.cs
/// <summary>
/// Returns the fully qualified path for an embedded resource from the virtual path recveived<para/>
/// The path returned by this method is invalid if the virtual path point towards a VB PortableArea.  
/// Unless everything in this VB assembly is at the root.
/// </summary>
Returns the fully qualified path for an embedded resource from the virtual path recveived
The path returned by this method is invalid if the virtual path point towards a VB PortableArea.
Unless everything in this VB assembly is at the root.
Returns the fully qualified path for an embedded resource from the virtual path recveived The path returned by this method is invalid if the virtual path point towards a VB PortableArea . Unless everything in this VB assembly is at the root .
public string GetFullyQualifiedTypeFromPath(string path)
        {
            string resourceName = path.ToLower().Replace("~", this.namespaceName);
            if (!string.IsNullOrEmpty(virtualPath))
                resourceName = resourceName.Replace(virtualPath, "");
            return resourceName.Replace("/", ".");
        }
public string GetFullyQualifiedTypeFromPath ( string path ) { string resourceName = path . ToLower ( ) . Replace ( " " , this . namespaceName ) ; if ( ! string . IsNullOrEmpty ( virtualPath ) ) resourceName = resourceName . Replace ( virtualPath , " " ) ; return resourceName . Replace ( " " , " " ) ; }
Returns the fully qualified path for an embedded resource from the virtual path recveived
The path returned by this method is invalid if the virtual path point towards a VB PortableArea.
Returns the fully qualified path for an embedded resource from the virtual path recveived The path returned by this method is invalid if the virtual path point towards a VB PortableArea .
// we can make this more succinct if we don't have to check for emtpy virtual path (by preventing in constuctor)
path
string