Table of Contents

Class VersionRangePart

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Represents an individual non-disjoint part of a VersionRange.

public abstract record VersionRangePart : IEquatable<VersionRangePart>
Inheritance
VersionRangePart
Implements
Derived
Inherited Members

Methods

Intersect(VersionRange)

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

public abstract IEnumerable<VersionRangePart> Intersect(VersionRange versions)

Parameters

versions VersionRange

Returns

IEnumerable<VersionRangePart>

Match(ImplementationVersion)

Determines whether a specific version lies within this range.

public abstract bool Match(ImplementationVersion version)

Parameters

version ImplementationVersion

Returns

bool

Parse(string)

Parses a string into a version range part.

public static VersionRangePart Parse(string value)

Parameters

value string

Returns

VersionRangePart

Exceptions

FormatException

value is not a valid version range string.