C# 클래스 NUnit.Framework.Internal.AssemblyHelper

AssemblyHelper provides static methods for working with assemblies.
파일 보기 프로젝트 열기: nunit/nunit 1 사용 예제들

공개 메소드들

메소드 설명
GetAssemblyName ( Assembly assembly ) : AssemblyName

Gets the AssemblyName of an assembly.

GetAssemblyPath ( Assembly assembly ) : string

Gets the path from which an assembly was loaded. For builds where this is not possible, returns the name of the assembly.

GetAssemblyPathFromCodeBase ( string codeBase ) : string

Gets the assembly path from code base.

Public for testing purposes

GetDirectoryName ( Assembly assembly ) : string

Gets the path to the directory from which an assembly was loaded.

Load ( string name ) : Assembly

Loads an assembly given a string, which is the AssemblyName

비공개 메소드들

메소드 설명
IsFileUri ( string uri ) : bool

메소드 상세

GetAssemblyName() 공개 정적인 메소드

Gets the AssemblyName of an assembly.
public static GetAssemblyName ( Assembly assembly ) : AssemblyName
assembly System.Reflection.Assembly The assembly
리턴 System.Reflection.AssemblyName

GetAssemblyPath() 공개 정적인 메소드

Gets the path from which an assembly was loaded. For builds where this is not possible, returns the name of the assembly.
public static GetAssemblyPath ( Assembly assembly ) : string
assembly System.Reflection.Assembly The assembly.
리턴 string

GetAssemblyPathFromCodeBase() 공개 정적인 메소드

Gets the assembly path from code base.
Public for testing purposes
public static GetAssemblyPathFromCodeBase ( string codeBase ) : string
codeBase string The code base.
리턴 string

GetDirectoryName() 공개 정적인 메소드

Gets the path to the directory from which an assembly was loaded.
public static GetDirectoryName ( Assembly assembly ) : string
assembly System.Reflection.Assembly The assembly.
리턴 string

Load() 공개 정적인 메소드

Loads an assembly given a string, which is the AssemblyName
public static Load ( string name ) : Assembly
name string
리턴 System.Reflection.Assembly