Show / Hide Table of Contents

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.

Inheritance
object
Version
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extractor.Metrics
Assembly: Cognite.Metrics.dll
Syntax
public static class Version

Methods

| Edit this page View Source

GetDescription(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

| Edit this page View Source

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

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX