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
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
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
TargetBaseto
TargetBase
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(TargetBase?)
protected bool Equals(TargetBase? other)
Parameters
other
TargetBase
Returns
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
TargetBaseThe left object
right
TargetBaseThe 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
TargetBaseThe left object
right
TargetBaseThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.