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

Represents a dotted-list part of a ImplementationVersion. More...

Inheritance diagram for ZeroInstall.Model.VersionDottedList:

Public Member Functions

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

Static Public Member Functions

static bool IsValid (string value)
 Checks whether a string represents a valid dotted-list.
 
static bool operator== (VersionDottedList left, VersionDottedList right)
 
static bool operator!= (VersionDottedList left, VersionDottedList right)
 
static bool operator< (VersionDottedList left, VersionDottedList right)
 
static bool operator> (VersionDottedList left, VersionDottedList right)
 
static bool operator<= (VersionDottedList left, VersionDottedList right)
 
static bool operator>= (VersionDottedList left, VersionDottedList right)
 

Properties

IReadOnlyList< long >? Decimals [get]
 The individual decimals.
 

Detailed Description

Represents a dotted-list part of a ImplementationVersion.

This is the syntax for valid dot-separated decimals:

DottedList := (Integer ("." Integer)*)

This class is immutable and thread-safe.

Constructor & Destructor Documentation

◆ VersionDottedList()

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

Creates a new dotted-list from a a string.

Parameters
valueThe string containing the dotted-list.
Exceptions
FormatExceptionvalue is not a valid dotted-list.

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