Свойство | Type | Description | |
---|---|---|---|
Default | IVersionComparer | ||
Version | IVersionComparer | ||
VersionRelease | IVersionComparer | ||
VersionReleaseMetadata | IVersionComparer |
Méthode | Description | |
---|---|---|
Compare ( |
Compare versions.
|
|
Compare ( |
Compares the given versions using the VersionComparison mode.
|
|
Equals ( |
Determines if both versions are equal.
|
|
GetHashCode ( |
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.
|
Méthode | Description | |
---|---|---|
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 |
Compares sets of release labels.
|
public Compare ( |
||
x | ||
y | ||
Résultat | int |
public static Compare ( |
||
version1 | ||
version2 | ||
versionComparison | VersionComparison | |
Résultat | int |
public Equals ( |
||
x | ||
y | ||
Résultat | bool |
public GetHashCode ( |
||
version | ||
Résultat | int |
public VersionComparer ( VersionComparison versionComparison ) : System | ||
versionComparison | VersionComparison | comparison mode |
Résultat | System |
public static IVersionComparer Default | ||
Résultat | IVersionComparer |
public static IVersionComparer Version | ||
Résultat | IVersionComparer |
public static IVersionComparer VersionRelease | ||
Résultat | IVersionComparer |