Class AssemblyHelper
AssemblyHelper provides static methods for working with assemblies.
public static class AssemblyHelper
- Inheritance
-
AssemblyHelper
- Inherited Members
Methods
GetAssemblyName(Assembly)
Gets the AssemblyName of an assembly.
public static AssemblyName GetAssemblyName(Assembly assembly)
Parameters
assembly
AssemblyThe assembly
Returns
- AssemblyName
An AssemblyName
GetAssemblyPath(Assembly)
Gets the path from which an assembly was loaded. For builds where this is not possible, returns the name of the assembly.
public static string GetAssemblyPath(Assembly assembly)
Parameters
assembly
AssemblyThe assembly.
Returns
- string
The path.
GetAssemblyPathFromCodeBase(string)
Gets the assembly path from code base.
public static string GetAssemblyPathFromCodeBase(string codeBase)
Parameters
codeBase
stringThe code base.
Returns
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
AssemblyThe assembly.
Returns
- string
The path.
Load(string)
Loads an assembly given a string, which is the AssemblyName
public static Assembly Load(string name)
Parameters
name
string