Zero Install .NET API 2.20.0
ZeroInstall.Model.VersionRangePartRange Class Reference

A version range like 1.0..!2.0 as a part of a VersionRange. More...

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

Public Member Functions

 VersionRangePartRange (ImplementationVersion? lowerInclusive, ImplementationVersion? upperExclusive)
 Creates a new version range. More...
 
override IEnumerable< VersionRangePartIntersect (VersionRange versions)
 Intersects a set of version ranges with this individual range and returns the surviving parts. More...
 
override bool Match (ImplementationVersion version)
 Determines whether a specific version lies within this range. More...
 
override string ToString ()
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Properties

ImplementationVersionLowerInclusive [get]
 The lower inclusive bound. May be null.
 
ImplementationVersionUpperExclusive [get]
 The upper exclusive bound. May be null.
 

Additional Inherited Members

- Static Public Member Functions inherited from ZeroInstall.Model.VersionRangePart
static VersionRangePart FromString (string value)
 Parses a string into a VersionRange part. More...
 

Detailed Description

A version range like 1.0..!2.0 as a part of a VersionRange.

This class is immutable and thread-safe.

Constructor & Destructor Documentation

◆ VersionRangePartRange()

ZeroInstall.Model.VersionRangePartRange.VersionRangePartRange ( ImplementationVersion lowerInclusive,
ImplementationVersion upperExclusive 
)
inline

Creates a new version range.

Parameters
lowerInclusiveThe lower inclusive bound. May be null.
upperExclusiveThe upper exclusive bound. May be null.

Member Function Documentation

◆ Intersect()

override IEnumerable< VersionRangePart > ZeroInstall.Model.VersionRangePartRange.Intersect ( VersionRange  versions)
inlinevirtual

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

Implements ZeroInstall.Model.VersionRangePart.

◆ Match()

override bool ZeroInstall.Model.VersionRangePartRange.Match ( ImplementationVersion  version)
inlinevirtual

Determines whether a specific version lies within this range.

Implements ZeroInstall.Model.VersionRangePart.


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