Zero Install .NET API 2.20.0
ZeroInstall.Model.VersionRangePart Class Referenceabstract

Represents an individual non-disjoint part of a VersionRange. More...

Inheritance diagram for ZeroInstall.Model.VersionRangePart:
ZeroInstall.Model.VersionRangePartExact ZeroInstall.Model.VersionRangePartExclude ZeroInstall.Model.VersionRangePartRange

Public Member Functions

abstract IEnumerable< VersionRangePartIntersect (VersionRange versions)
 Intersects a set of version ranges with this individual range and returns the surviving parts. More...
 
abstract bool Match (ImplementationVersion version)
 Determines whether a specific version lies within this range. More...
 

Static Public Member Functions

static VersionRangePart FromString (string value)
 Parses a string into a VersionRange part. More...
 

Detailed Description

Represents an individual non-disjoint part of a VersionRange.

This class is immutable and thread-safe.

Member Function Documentation

◆ FromString()

static VersionRangePart ZeroInstall.Model.VersionRangePart.FromString ( string  value)
inlinestatic

Parses a string into a VersionRange part.

Exceptions
FormatExceptionvalue is not a valid version range string.

◆ Intersect()

abstract IEnumerable< VersionRangePart > ZeroInstall.Model.VersionRangePart.Intersect ( VersionRange  versions)
pure virtual

Intersects a set of version ranges with this individual range and returns the surviving parts.

Implemented in ZeroInstall.Model.VersionRangePartExact, ZeroInstall.Model.VersionRangePartExclude, and ZeroInstall.Model.VersionRangePartRange.

◆ Match()

abstract bool ZeroInstall.Model.VersionRangePart.Match ( ImplementationVersion  version)
pure virtual

Determines whether a specific version lies within this range.

Implemented in ZeroInstall.Model.VersionRangePartExact, ZeroInstall.Model.VersionRangePartExclude, and ZeroInstall.Model.VersionRangePartRange.


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