Click or drag to resize

VersionStamp Class



VersionStamp should be only used to compare versions returned by same API.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisVersionStamp

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class VersionStamp : ValueType, 
	IEquatable

The VersionStamp type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDefault
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a new instance of a VersionStamp.
Public methodStatic memberCreate(DateTime)
Creates a new instance of a version stamp based on the specified DateTime.
Public methodEquals(Object)
Public methodEquals(VersionStamp)
Public methodGetHashCode
Public methodGetNewerVersion
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
Public methodGetNewerVersion(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
Public methodToString
Returns the serialized text form of the VersionStamp.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Top
See Also