Class VersionResult
- Namespace
- Cuemon.Reflection
- Assembly
- Cuemon.Core.dll
Represents different representations of a version scheme in a consistent way.
public class VersionResult
- Inheritance
-
VersionResult
Constructors
VersionResult(String)
Initializes a new instance of the VersionResult class.
public VersionResult(string alphanumericVersion)
Parameters
VersionResult(Version)
Initializes a new instance of the VersionResult class.
public VersionResult(Version version)
Parameters
Exceptions
- 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
Returns
- Boolean
true
if this instance represents a semantic version; otherwise,false
.
ToString()
Returns a String that represents this instance.
public override string ToString()
Returns
ToVersion()
Converts this instance to an equivalent Version object.
public Version ToVersion()