C# 클래스 Spring.Core.TypeResolution.TypeResolver

Resolves a System.Type by name.
상속: ITypeResolver
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
Resolve ( string typeName ) : Type

Resolves the supplied typeName to a System.Type instance.

보호된 메소드들

메소드 설명
BuildTypeLoadException ( string typeName ) : TypeLoadException

Creates a new TypeLoadException instance from the given typeName

BuildTypeLoadException ( string typeName, Exception ex ) : TypeLoadException

Creates a new TypeLoadException instance from the given typeName with the given inner Exception

비공개 메소드들

메소드 설명
LoadTypeByIteratingOverAllLoadedAssemblies ( Spring.Core.TypeResolution.TypeAssemblyHolder typeInfo ) : Type

Uses M:System.AppDomain.CurrentDomain.GetAssemblies() to load the attendant System.Type referred to by the typeInfo parameter.

LoadTypeDirectlyFromAssembly ( Spring.Core.TypeResolution.TypeAssemblyHolder typeInfo ) : Type

Uses System.Reflection.Assembly.LoadWithPartialName(string) to load an System.Reflection.Assembly and then the attendant System.Type referred to by the typeInfo parameter.

System.Reflection.Assembly.LoadWithPartialName(string) is deprecated in .NET 2.0, but is still used here (even when this class is compiled for .NET 2.0); System.Reflection.Assembly.LoadWithPartialName(string) will still resolve (non-.NET Framework) local assemblies when given only the display name of an assembly (the behaviour for .NET Framework assemblies and strongly named assemblies is documented in the docs for the System.Reflection.Assembly.LoadWithPartialName(string) method).

메소드 상세

BuildTypeLoadException() 보호된 정적인 메소드

Creates a new TypeLoadException instance from the given typeName
protected static BuildTypeLoadException ( string typeName ) : TypeLoadException
typeName string
리턴 System.TypeLoadException

BuildTypeLoadException() 보호된 정적인 메소드

Creates a new TypeLoadException instance from the given typeName with the given inner Exception
protected static BuildTypeLoadException ( string typeName, Exception ex ) : TypeLoadException
typeName string
ex System.Exception
리턴 System.TypeLoadException

Resolve() 공개 메소드

Resolves the supplied typeName to a System.Type instance.
/// If the supplied could not be resolved /// to a . ///
public Resolve ( string typeName ) : Type
typeName string /// The unresolved (possibly partially assembly qualified) name /// of a . ///
리턴 System.Type