Show / Hide Table of Contents

Class VersionRangePartExclude

An exclusion like !2.0 as a part of a VersionRange.

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

This class is immutable and thread-safe.

Constructors

VersionRangePartExclude(ImplementationVersion)

Declaration
public VersionRangePartExclude(ImplementationVersion version)
Parameters
Type Name Description
ImplementationVersion version

Properties

Version

The version to be excluded.

Declaration
public ImplementationVersion Version { 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