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
versionsVersionRange
Returns
Match(ImplementationVersion)
Determines whether a specific version lies within this range.
public abstract bool Match(ImplementationVersion version)
Parameters
versionImplementationVersion
Returns
Parse(string)
Parses a string into a version range part.
public static VersionRangePart Parse(string value)
Parameters
valuestring
Returns
Exceptions
- FormatException
valueis not a valid version range string.