Class TargetBase
Abstract base class for Element and FeedReference. Contains language and architecture parameters.
Inherited Members
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
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
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
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
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. |