Table of Contents

Struct CSemVerCI

Namespace
Ubiquity.NET.Versioning
Assembly
Ubiquity.NET.Versioning.dll

Represents a CSemVer-CI value

public readonly struct CSemVerCI : IParsable<CSemVerCI>, IComparable<CSemVerCI>, IComparisonOperators<CSemVerCI, CSemVerCI, bool>, IEqualityOperators<CSemVerCI, CSemVerCI, bool>, IEquatable<CSemVerCI>
Implements
Inherited Members

Remarks

This class represents a CSemVer-CI which is a specialized form of SemVer. A CSemVer-CI is Continuous Integration (CI) information attached to a base build number. Thus, it is a post-release number unless the base is (0.0.0) where it is a pre-release as no release of the product exists to base it on.

Constructors

CSemVerCI(string, string, IEnumerable<string>?)

Initializes a new instance of the CSemVerCI struct as a "CSemVer-CI ZeroTimed' value

CSemVerCI(CSemVer, string, string)

Initializes a new instance of the CSemVerCI struct.

Properties

BuildMeta

Gets the build components of the version

Index

Gets the Build Index for this instance

Major

Gets the Major portion of the core version

Minor

Gets the Minor portion of the core version

Name

Gets the Build name of this instance

Patch

Gets the Patch portion of the core version

PreRelease

Gets the pre-release components of the version

PrereleaseVersion

Gets the PrereleaseVersion information for the build this is based on (if any)

Methods

CompareTo(CSemVerCI)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Equals(object?)

Indicates whether this instance and a specified object are equal.

Equals(CSemVerCI)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

Parse(string, IFormatProvider?)

Parses a string into a value.

ToSemVer()

Converts this instance to a SemVer instance

ToString()

Returns the fully qualified type name of this instance.

TryFrom(SemVer, out CSemVerCI, out Exception)

Tries to convert a SemVer to a CSemVerCI

TryParse(string?, IFormatProvider?, out CSemVerCI)

Tries to parse a string into a value.

TryParse(string?, out CSemVerCI, out Exception)

Applies try pattern to attempt parsing a CSemVerCI from a string

Operators

operator ==(CSemVerCI, CSemVerCI)

Compares two values to determine equality.

operator >(CSemVerCI, CSemVerCI)

Compares two values to determine which is greater.

operator >=(CSemVerCI, CSemVerCI)

Compares two values to determine which is greater or equal.

implicit operator SemVer(CSemVerCI)

Converts this instance to a SemVer instance

operator !=(CSemVerCI, CSemVerCI)

Compares two values to determine inequality.

operator <(CSemVerCI, CSemVerCI)

Compares two values to determine which is less.

operator <=(CSemVerCI, CSemVerCI)

Compares two values to determine which is less or equal.

See Also