Class VersionRangePartExact
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
An exact version number like 2.0
as a part of a VersionRange.
public sealed record VersionRangePartExact : VersionRangePart, IEquatable<VersionRangePart>, IEquatable<VersionRangePartExact>
- Inheritance
-
VersionRangePartExact
- Implements
- Inherited Members
Constructors
VersionRangePartExact(ImplementationVersion)
An exact version number like 2.0
as a part of a VersionRange.
public VersionRangePartExact(ImplementationVersion Version)
Parameters
Version
ImplementationVersionThe exact version to match.
Properties
Version
The exact version to match.
public ImplementationVersion Version { 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.