Show / Hide Table of Contents

Class VersionRangePartRange

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

Inheritance
Object
VersionRangePart
VersionRangePartRange
Inherited Members
VersionRangePart.Parse(String)
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class VersionRangePartRange : VersionRangePart
Remarks

This class is immutable and thread-safe.

Constructors

VersionRangePartRange(ImplementationVersion, ImplementationVersion)

Creates a new version range.

Declaration
public VersionRangePartRange(ImplementationVersion lowerInclusive, ImplementationVersion upperExclusive)
Parameters
Type Name Description
ImplementationVersion lowerInclusive

The lower inclusive bound. May be null.

ImplementationVersion upperExclusive

The upper exclusive bound. May be null.

Properties

LowerInclusive

The lower inclusive bound. May be null.

Declaration
public ImplementationVersion LowerInclusive { get; }
Property Value
Type Description
ImplementationVersion

UpperExclusive

The upper exclusive bound. May be null.

Declaration
public ImplementationVersion UpperExclusive { get; }
Property Value
Type Description
ImplementationVersion

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

Intersect(VersionRange)

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

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

Match(ImplementationVersion)

Determines whether a specific version lies within this range.

Declaration
public override bool Match(ImplementationVersion version)
Parameters
Type Name Description
ImplementationVersion version
Returns
Type Description
Boolean
Overrides
VersionRangePart.Match(ImplementationVersion)

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
In This Article
Back to top Copyright Bastian Eicher et al