Class AssemblyUtilityExtensions
This is an extension implementation of the most common methods on the AssemblyUtility class.
Inheritance
Namespace: Cuemon.Reflection
Assembly: Cuemon.Reflection.dll
Syntax
public static class AssemblyUtilityExtensions
Methods
| Improve this DocGetAssemblyVersion(Assembly)
Returns a System.Version that represents the version number of the specified assembly
.
Declaration
public static Version GetAssemblyVersion(this 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(this 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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
GetProductVersion(Assembly)
Returns a System.Version that represents the version of the product this assembly
is distributed with.
Declaration
public static Version GetProductVersion(this 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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
IsDebugBuild(Assembly)
Determines whether the specified assembly
is a debug build.
Declaration
public static bool IsDebugBuild(this 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 |
|