Class AssemblyUtility
This utility class is designed to make common System.Reflection.Assembly related operations easier to work with.
Inheritance
Namespace: Cuemon.Reflection
Assembly: Cuemon.Reflection.dll
Syntax
public static class AssemblyUtility
Methods
| Improve this DocGetAssemblyVersion(Assembly)
Returns a System.Version that represents the version number of the specified assembly
.
Declaration
public static Version GetAssemblyVersion(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly to resolve a System.Version from. |
Returns
Type | Description |
---|---|
System.Version | A System.Version that represents the version number of the specified |
GetFileVersion(Assembly)
Returns a System.Version that represents the file version number of the specified assembly
.
Declaration
public static Version GetFileVersion(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly to resolve a System.Version from. |
Returns
Type | Description |
---|---|
System.Version | A System.Version that represents the file version number of the specified |
GetProductVersion(Assembly)
Returns a System.Version that represents the version of the product this assembly
is distributed with.
Declaration
public static Version GetProductVersion(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly to resolve a System.Version from. |
Returns
Type | Description |
---|---|
System.Version | A System.Version that represents the version of the product this |
IsDebugBuild(Assembly)
Determines whether the specified assembly
is a debug build.
Declaration
public static bool IsDebugBuild(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly to parse and determine whether it is a debug build or not. |
Returns
Type | Description |
---|---|
System.Boolean |
|