Zero Install .NET API 2.20.0
ZeroInstall.Model.VersionPart Struct Reference

Represents a part of a ImplementationVersion containing nothing, a VersionModifier, a DottedList or both. More...

Inheritance diagram for ZeroInstall.Model.VersionPart:

Public Member Functions

 VersionPart (string value)
 Creates a new dotted-list from a a string. More...
 
override string ToString ()
 
bool Equals (VersionPart other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
int CompareTo (VersionPart other)
 

Static Public Member Functions

static bool operator== (VersionPart left, VersionPart right)
 
static bool operator!= (VersionPart left, VersionPart right)
 
static bool operator< (VersionPart left, VersionPart right)
 
static bool operator> (VersionPart left, VersionPart right)
 
static bool operator<= (VersionPart left, VersionPart right)
 
static bool operator>= (VersionPart left, VersionPart right)
 

Static Public Attributes

static readonly VersionPart Default = new("-1")
 A version number with the value -1. More...
 

Properties

VersionModifier Modifier [get]
 The modifier part of the version part.
 
VersionDottedList DottedList [get]
 The dotted list part of the version part.
 

Detailed Description

Represents a part of a ImplementationVersion containing nothing, a VersionModifier, a DottedList or both.

This class is immutable and thread-safe.

Constructor & Destructor Documentation

◆ VersionPart()

ZeroInstall.Model.VersionPart.VersionPart ( string  value)
inline

Creates a new dotted-list from a a string.

Parameters
valueThe string containing the dotted-list.

Member Data Documentation

◆ Default

readonly VersionPart ZeroInstall.Model.VersionPart.Default = new("-1")
static

A version number with the value -1.

-1 or "not set" has an even lower value than a set "0".


The documentation for this struct was generated from the following file: