Show / Hide Table of Contents

Class TargetBase

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

Inheritance
Object
XmlUnknown
FeedElement
TargetBase
Element
FeedReference
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
IEquatable<TargetBase>
Inherited Members
FeedElement.FilterMismatch<T>(T)
FeedElement.FilterMismatch(IRecipeStep)
FeedElement.Equals(FeedElement)
FeedElement.IfZeroInstallVersion
FeedElement.IfZeroInstallVersionString
XmlUnknown.UnknownAttributes
XmlUnknown.UnknownElements
XmlUnknown.EnsureAttribute(Object, String)
XmlUnknown.EnsureAttributeSafeID(String, String)
XmlUnknown.ToShortXml()
XmlUnknown.Equals(XmlUnknown)
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public abstract class TargetBase : FeedElement

Constructors

TargetBase()

Declaration
protected TargetBase()

Properties

Architecture

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

Declaration
public Architecture Architecture { get; set; }
Property Value
Type Description
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.

ArchitectureString

Used for XML serialization.

Declaration
public string ArchitectureString { get; set; }
Property Value
Type Description
String
See Also
Architecture

Languages

The natural language(s) which an Implementation supports.

Declaration
public LanguageSet Languages { get; set; }
Property Value
Type Description
LanguageSet
Examples

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

LanguagesString

Used for XML serialization.

Declaration
public string LanguagesString { get; set; }
Property Value
Type Description
String
See Also
Languages

Methods

CloneFromTo(TargetBase, TargetBase)

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

Declaration
protected static void CloneFromTo(TargetBase from, TargetBase to)
Parameters
Type Name Description
TargetBase from
TargetBase to

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
FeedElement.Equals(Object)

Equals(TargetBase)

Declaration
public bool Equals(TargetBase other)
Parameters
Type Name Description
TargetBase other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
FeedElement.GetHashCode()

Operators

Equality(TargetBase, TargetBase)

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

Declaration
public static bool operator ==(TargetBase left, TargetBase right)
Parameters
Type Name Description
TargetBase left

The left object

TargetBase right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(TargetBase, TargetBase)

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

Declaration
public static bool operator !=(TargetBase left, TargetBase right)
Parameters
Type Name Description
TargetBase left

The left object

TargetBase right

The right object

Returns
Type Description
Boolean

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

Implements

System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher et al