Table of Contents

Class VersionRangePartExclude

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

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

public sealed record VersionRangePartExclude : VersionRangePart, IEquatable<VersionRangePart>, IEquatable<VersionRangePartExclude>
Inheritance
VersionRangePartExclude
Implements
Inherited Members

Constructors

VersionRangePartExclude(ImplementationVersion)

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

public VersionRangePartExclude(ImplementationVersion Version)

Parameters

Version ImplementationVersion

The version to be excluded.

Properties

Version

The version to be excluded.

public ImplementationVersion Version { get; init; }

Property Value

ImplementationVersion

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

IEnumerable<VersionRangePart>

Match(ImplementationVersion)

Determines whether a specific version lies within this range.

public override bool Match(ImplementationVersion version)

Parameters

version ImplementationVersion

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.