C# 클래스 MvcContrib.PortableAreas.AssemblyResourceLocator

Lookup to find an embedded resource from an assembly. This class abstract the fact that embedded resource in C# project and those in VB project are not embedded the same way. VB compiler does not prefix embedded resource name with the path of the original file.
파일 보기 프로젝트 열기: atomicobject/mvccontrib 1 사용 예제들

공개 메소드들

메소드 설명
AssemblyResourceLocator ( string>.Dictionary resources, string namespaceName, string virtualPath ) : System
GetFullyQualifiedTypeFromPath ( string path ) : string

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.

IsPathResourceStream ( string path ) : bool

Returns true if a virtual path points towards an existing embedded resource. 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).

TryGetActualResourceName ( string path, string &resourceName ) : bool

From the virtual path received, look for the associated embedded resource and returns if exists. This method supports both C# and VB embedded resource.

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).

비공개 메소드들

메소드 설명
GetFileNameOnly ( string fullPath ) : string
GetPartiallyQualifiedTypeFromPath ( string path, int rootLevel, bool &keepGoing ) : string
JoinNamespaces ( ) : Func
JoinNamespaces ( string x, string y ) : string
RemoveIntermediatePathFrom ( string fullPath, int rootLevel, bool &keepGoing ) : string
ResourcesContainsFullyQualifiedType ( string path ) : bool
ResourcesContainsPartiallyQualifiedType ( string path ) : bool
ResourcesContainsType ( string typeString ) : bool
TryGetPartialResourceName ( string path, string &resourceName ) : bool

메소드 상세

AssemblyResourceLocator() 공개 메소드

public AssemblyResourceLocator ( string>.Dictionary resources, string namespaceName, string virtualPath ) : System
resources string>.Dictionary
namespaceName string
virtualPath string
리턴 System

GetFullyQualifiedTypeFromPath() 공개 메소드

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 GetFullyQualifiedTypeFromPath ( string path ) : string
path string
리턴 string

IsPathResourceStream() 공개 메소드

Returns true if a virtual path points towards an existing embedded resource. 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).
public IsPathResourceStream ( string path ) : bool
path string
리턴 bool

TryGetActualResourceName() 공개 메소드

From the virtual path received, look for the associated embedded resource and returns if exists. This method supports both C# and VB embedded resource.
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).
public TryGetActualResourceName ( string path, string &resourceName ) : bool
path string /// The virtual path of a resource ///
resourceName string /// Returns the real embedded resource name associated to the virtual resource path. ///
리턴 bool