Läs på engelska

Dela via


VersionStamp Struct

Definition

VersionStamp should be only used to compare versions returned by same API.

C#
public struct VersionStamp : IEquatable<Microsoft.CodeAnalysis.VersionStamp>
C#
public readonly struct VersionStamp : IEquatable<Microsoft.CodeAnalysis.VersionStamp>
Inheritance
VersionStamp
Implements

Properties

Methods

Create()

Creates a new instance of a VersionStamp.

Create(DateTime)

Creates a new instance of a version stamp based on the specified DateTime.

Equals(Object)
Equals(VersionStamp)
GetHashCode()
GetNewerVersion()

Gets a new VersionStamp that is guaranteed to be newer than its base one this should only be used for same item to move it to newer version

GetNewerVersion(VersionStamp)

compare two different versions and return either one of the versions if there is no collision, otherwise, create a new version that can be used later to compare versions between different items

ToString()

Returns the serialized text form of the VersionStamp.

Operators

Applies to

Produkt Versioner
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0