Table of Contents

Class VersionRangePartRange

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

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

public record VersionRangePartRange : VersionRangePart, IEquatable<VersionRangePart>, IEquatable<VersionRangePartRange>
Inheritance
VersionRangePartRange
Implements
Inherited Members

Constructors

VersionRangePartRange(ImplementationVersion?, ImplementationVersion?)

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

public VersionRangePartRange(ImplementationVersion? LowerInclusive, ImplementationVersion? UpperExclusive)

Parameters

LowerInclusive ImplementationVersion

The lower inclusive bound. May be null.

UpperExclusive ImplementationVersion

The upper exclusive bound. May be null.

Properties

LowerInclusive

The lower inclusive bound. May be null.

public ImplementationVersion? LowerInclusive { get; init; }

Property Value

ImplementationVersion

UpperExclusive

The upper exclusive bound. May be null.

public ImplementationVersion? UpperExclusive { get; init; }

Property Value

ImplementationVersion

Methods

Intersect(VersionRange)

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

public override IEnumerable<VersionRangePart> Intersect(VersionRange versions)

Parameters

versions VersionRange

Returns

IEnumerable<VersionRangePart>

Match(ImplementationVersion)

Determines whether a specific version lies within this range.

public override bool Match(ImplementationVersion version)

Parameters

version ImplementationVersion

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.