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
- versioncannot 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
- bool
- trueif 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
- bool
- trueif 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
- bool
- trueif 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()