Table of Contents

Class TargetBase

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Abstract base class for Element and FeedReference. Contains language and architecture parameters.

[Equatable]
public abstract class TargetBase : FeedElement, IEquatable<XmlUnknown>, IEquatable<FeedElement>, IEquatable<TargetBase>
Inheritance
TargetBase
Implements
Derived
Inherited Members

Properties

Architecture

For platform-specific binaries, the platform for which an Implementation was compiled.

public Architecture Architecture { get; set; }

Property Value

Architecture

Remarks

The injector knows that certain platforms are backwards-compatible with others, so binaries with arch="Linux-i486" will still be available on Linux-i686 machines, for example.

Languages

The natural language(s) which an Implementation supports.

[SetEquality]
public LanguageSet Languages { get; set; }

Property Value

LanguageSet

Examples

For example, the value "en_GB fr" would be used for a package supporting British English and French.

Methods

CloneFromTo(TargetBase, TargetBase)

Copies all known values from one instance to another. Helper method for instance cloning.

protected static void CloneFromTo(TargetBase from, TargetBase to)

Parameters

from TargetBase
to TargetBase

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(TargetBase?)

protected bool Equals(TargetBase? other)

Parameters

other TargetBase

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(TargetBase?, TargetBase?)

Indicates whether the object on the left is equal to the object on the right.

public static bool operator ==(TargetBase? left, TargetBase? right)

Parameters

left TargetBase

The left object

right TargetBase

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(TargetBase?, TargetBase?)

Indicates whether the object on the left is not equal to the object on the right.

public static bool operator !=(TargetBase? left, TargetBase? right)

Parameters

left TargetBase

The left object

right TargetBase

The right object

Returns

bool

true if the objects are not equal; otherwise, false.