Class TargetBase
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Abstract base class for Element and FeedReference. Contains language and architecture parameters.
public abstract class TargetBase : FeedElement, IEquatable<FeedElement>, IEquatable<TargetBase>
- Inheritance
-
objectTargetBase
- Implements
- Derived
- Inherited Members
Constructors
TargetBase()
protected TargetBase()
Properties
Architecture
For platform-specific binaries, the platform for which an Implementation was compiled.
public Architecture Architecture { get; set; }
Property Value
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.
public LanguageSet Languages { get; set; }
Property Value
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 members declared by TargetBase from one instance to another.
protected static void CloneFromTo(TargetBase from, TargetBase to)
Parameters
fromTargetBasetoTargetBase
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(TargetBase?)
protected bool Equals(TargetBase? other)
Parameters
otherTargetBase
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
leftTargetBaseThe left object
rightTargetBaseThe 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
leftTargetBaseThe left object
rightTargetBaseThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.