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
ImplementationVersionThe lower inclusive bound. May be
null
.UpperExclusive
ImplementationVersionThe upper exclusive bound. May be
null
.
Properties
LowerInclusive
The lower inclusive bound. May be null
.
public ImplementationVersion? LowerInclusive { get; init; }
Property Value
UpperExclusive
The upper exclusive bound. May be null
.
public ImplementationVersion? UpperExclusive { get; init; }
Property Value
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
Match(ImplementationVersion)
Determines whether a specific version lies within this range.
public override bool Match(ImplementationVersion version)
Parameters
version
ImplementationVersion
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.