Show / Hide Table of Contents

Class VersionRangePart

Represents an individual non-disjoint part of a VersionRange.

Inheritance
Object
VersionRangePart
VersionRangePartExact
VersionRangePartExclude
VersionRangePartRange
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public abstract class VersionRangePart : Object
Remarks

This class is immutable and thread-safe.

Constructors

VersionRangePart()

Declaration
protected VersionRangePart()

Methods

Intersect(VersionRange)

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

Declaration
public abstract IEnumerable<VersionRangePart> Intersect(VersionRange versions)
Parameters
Type Name Description
VersionRange versions
Returns
Type Description
IEnumerable<VersionRangePart>

Match(ImplementationVersion)

Determines whether a specific version lies within this range.

Declaration
public abstract bool Match(ImplementationVersion version)
Parameters
Type Name Description
ImplementationVersion version
Returns
Type Description
Boolean

Parse(String)

Parses a string into a version range part.

Declaration
public static VersionRangePart Parse(string value)
Parameters
Type Name Description
String value
Returns
Type Description
VersionRangePart
Exceptions
Type Condition
FormatException

value is not a valid version range string.

In This Article
Back to top Copyright Bastian Eicher et al