C# 클래스 Octopus.Client.Model.Versioning.VersionComparer

An IVersionComparer for NuGetVersion and NuGetVersion types.
상속: IVersionComparer
파일 보기 프로젝트 열기: OctopusDeploy/Octo.exe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Default IVersionComparer
Version IVersionComparer
VersionRelease IVersionComparer
VersionReleaseMetadata IVersionComparer

공개 메소드들

메소드 설명
Compare ( StrictSemanticVersion x, StrictSemanticVersion y ) : int

Compare versions.

Compare ( StrictSemanticVersion version1, StrictSemanticVersion version2, VersionComparison versionComparison ) : int

Compares the given versions using the VersionComparison mode.

Equals ( StrictSemanticVersion x, StrictSemanticVersion y ) : bool

Determines if both versions are equal.

GetHashCode ( StrictSemanticVersion version ) : int

Gives a hash code based on the normalized version string.

VersionComparer ( ) : System

Creates a VersionComparer using the default mode.

VersionComparer ( VersionComparison versionComparison ) : System

Creates a VersionComparer that respects the given comparison mode.

비공개 메소드들

메소드 설명
CompareLegacyVersion ( SemanticVersion legacyX, SemanticVersion legacyY ) : int

Compares the 4th digit of the version number.

CompareRelease ( string version1, string version2 ) : int

Release labels are compared as numbers if they are numeric, otherwise they will be compared as strings.

CompareReleaseLabels ( IEnumerable version1, IEnumerable version2 ) : int

Compares sets of release labels.

메소드 상세

Compare() 공개 메소드

Compare versions.
public Compare ( StrictSemanticVersion x, StrictSemanticVersion y ) : int
x StrictSemanticVersion
y StrictSemanticVersion
리턴 int

Compare() 공개 정적인 메소드

Compares the given versions using the VersionComparison mode.
public static Compare ( StrictSemanticVersion version1, StrictSemanticVersion version2, VersionComparison versionComparison ) : int
version1 StrictSemanticVersion
version2 StrictSemanticVersion
versionComparison VersionComparison
리턴 int

Equals() 공개 메소드

Determines if both versions are equal.
public Equals ( StrictSemanticVersion x, StrictSemanticVersion y ) : bool
x StrictSemanticVersion
y StrictSemanticVersion
리턴 bool

GetHashCode() 공개 메소드

Gives a hash code based on the normalized version string.
public GetHashCode ( StrictSemanticVersion version ) : int
version StrictSemanticVersion
리턴 int

VersionComparer() 공개 메소드

Creates a VersionComparer using the default mode.
public VersionComparer ( ) : System
리턴 System

VersionComparer() 공개 메소드

Creates a VersionComparer that respects the given comparison mode.
public VersionComparer ( VersionComparison versionComparison ) : System
versionComparison VersionComparison comparison mode
리턴 System

프로퍼티 상세

Default 공개적으로 정적으로 프로퍼티

A default comparer that compares metadata as strings.
public static IVersionComparer Default
리턴 IVersionComparer

Version 공개적으로 정적으로 프로퍼티

A comparer that uses only the version numbers.
public static IVersionComparer Version
리턴 IVersionComparer

VersionRelease 공개적으로 정적으로 프로퍼티

Compares versions without comparing the metadata.
public static IVersionComparer VersionRelease
리턴 IVersionComparer

VersionReleaseMetadata 공개적으로 정적으로 프로퍼티

A version comparer that follows SemVer 2.0.0 rules.
public static IVersionComparer VersionReleaseMetadata
리턴 IVersionComparer