Class Version
Utility class for reading version information from attributes. In order to use this, version information has to be added to the assembly. See the online documentation for an example.
Inherited Members
Namespace: Cognite.Extractor.Metrics
Assembly: Cognite.Metrics.dll
Syntax
public static class Version
Methods
| Edit this page View SourceGetDescription(Assembly, string)
Get the AssemblyDescription set at compile time
Declaration
public static string GetDescription(Assembly assembly, string def = "Unknown")
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | Assembly to get version from |
string | def | Default value |
Returns
Type | Description |
---|---|
string | Value of the description attribute |
GetVersion(Assembly, string)
Get the AssemblyInformationalVersion set at compile time
Declaration
public static string GetVersion(Assembly assembly, string def = "1.0.0")
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | Assembly to get version from |
string | def | Default value |
Returns
Type | Description |
---|---|
string | Value of the verison attribute or default |