Table of Contents

Class VersionResult

Namespace
Cuemon.Reflection
Assembly
Cuemon.Core.dll

Represents different representations of a version scheme in a consistent way.

public class VersionResult
Inheritance
Object
VersionResult

Constructors

VersionResult(String)

Initializes a new instance of the VersionResult class.

public VersionResult(string alphanumericVersion)

Parameters

alphanumericVersion String

The System.String that represents a potential alphanumeric version.

VersionResult(Version)

Initializes a new instance of the VersionResult class.

public VersionResult(Version version)

Parameters

version Version

The System.Version that represents a numerical version {major.minor.build.revision}.

Exceptions

System.ArgumentNullException

version cannot be null.

Properties

AlphanumericVersion

Gets the alphanumeric version assigned to this instance.

public string AlphanumericVersion { get; }

Property Value

String

The alphanumeric version assigned to this instance.

HasAlphanumericVersion

Gets a value indicating whether this instance has alphanumeric version assigned.

public bool HasAlphanumericVersion { get; }

Property Value

Boolean

true if this instance has alphanumeric version assigned; otherwise, false.

Value

Gets the value of the version passed to this object.

public string Value { get; }

Property Value

String

The value of the version passed to this object.

Methods

IsSemanticVersion()

Determines whether this instance represents a semantic version.

public bool IsSemanticVersion()

Returns

Boolean

true if this instance represents a semantic version; otherwise, false.

IsSemanticVersion(String)

Determines whether this instance represents a semantic version.

public static bool IsSemanticVersion(string alphanumericVersion)

Parameters

alphanumericVersion String

The System.String that represents a potential alphanumeric version.

Returns

Boolean

true if this instance represents a semantic version; otherwise, false.

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

String

A System.String that represents this instance.

ToVersion()

Converts this instance to an equivalent System.Version object.

public Version ToVersion()

Returns

Version

An equivalent System.Version object of this instance.