SemanticVersionPreReleaseTag Class

Assembly
GitVersion.Core.dll
Namespace
GitVersion
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IFormattable"] Type-.->Interface1["IComparable<SemanticVersionPreReleaseTag>"] Type-.->Interface2["IEquatable<SemanticVersionPreReleaseTag>"] Type["SemanticVersionPreReleaseTag"] class Type type-node

Syntax

public class SemanticVersionPreReleaseTag : IFormattable, 
    IComparable<SemanticVersionPreReleaseTag>, IEquatable<SemanticVersionPreReleaseTag>

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Properties

Name Value Summary
Name string
Number Nullable<long>
PromotedFromCommits Nullable<bool>

Methods

Name Value Summary
CompareTo(SemanticVersionPreReleaseTag) int
Equals(object) bool
Equals(SemanticVersionPreReleaseTag) bool
GetHashCode() int
HasTag() bool
Parse(string) SemanticVersionPreReleaseTag
static
ToString() string
ToString(string, IFormatProvider) string
Default formats:

t - SemVer 2.0 formatted tag [beta.1]

l - Legacy SemVer tag with the tag number padded. [beta1]

lp - Legacy SemVer tag with the tag number padded. [beta0001]. Can specify an integer to control padding (i.e., lp5)

ToString(string) string

Operators

Name Value Summary
implicit operator SemanticVersionPreReleaseTag(string) SemanticVersionPreReleaseTag
implicit operator string(SemanticVersionPreReleaseTag) string
operator !=(SemanticVersionPreReleaseTag, SemanticVersionPreReleaseTag) bool
operator <(SemanticVersionPreReleaseTag, SemanticVersionPreReleaseTag) bool
operator <=(SemanticVersionPreReleaseTag, SemanticVersionPreReleaseTag) bool
operator ==(SemanticVersionPreReleaseTag, SemanticVersionPreReleaseTag) bool
operator >(SemanticVersionPreReleaseTag, SemanticVersionPreReleaseTag) bool
operator >=(SemanticVersionPreReleaseTag, SemanticVersionPreReleaseTag) bool

Extension Methods

Name Value Summary
GetProperties() IEnumerable<KeyValuePair<string, string>>
NotNull<SemanticVersionPreReleaseTag>(string) T