Table of Contents

Class AssemblyHelper

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

AssemblyHelper provides static methods for working with assemblies.

public class AssemblyHelper
Inheritance
AssemblyHelper
Inherited Members

Constructors

AssemblyHelper()

public AssemblyHelper()

Methods

GetAssemblyName(Assembly)

Gets the AssemblyName of an assembly.

public static AssemblyName GetAssemblyName(Assembly assembly)

Parameters

assembly Assembly

The assembly

Returns

AssemblyName

An AssemblyName

GetAssemblyPath(Assembly)

Gets the path from which an assembly was loaded.

public static string GetAssemblyPath(Assembly assembly)

Parameters

assembly Assembly

The assembly.

Returns

string

The path.

GetAssemblyPath(Type)

Gets the path from which the assembly defining a type was loaded.

public static string GetAssemblyPath(Type type)

Parameters

type Type

The Type.

Returns

string

The path.

GetAssemblyPathFromCodeBase(string)

Gets the assembly path from code base.

public static string GetAssemblyPathFromCodeBase(string codeBase)

Parameters

codeBase string

The code base.

Returns

string

Remarks

Public for testing purposes

GetDirectoryName(Assembly)

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

public static string GetDirectoryName(Assembly assembly)

Parameters

assembly Assembly

The assembly.

Returns

string

The path.