Class AssemblyHelper
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
AssemblyThe assembly
Returns
- AssemblyName
An AssemblyName
GetAssemblyPath(Assembly)
Gets the path from which an assembly was loaded.
public static string GetAssemblyPath(Assembly assembly)
Parameters
assembly
AssemblyThe 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
TypeThe Type.
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.