Table of Contents

Class FeedReference

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

A linked feed that contains more implementations of this interface. Is treated by the solver as if it were part of the main feed.

[Serializable]
[Equatable]
public sealed class FeedReference : TargetBase, IEquatable<XmlUnknown>, IEquatable<FeedElement>, IEquatable<TargetBase>, ICloneable<FeedReference>, IEquatable<FeedReference>
Inheritance
FeedReference
Implements
Inherited Members

Properties

Source

The URL or local path used to locate the feed.

public required FeedUri Source { get; set; }

Property Value

FeedUri

Methods

Clone()

Creates a deep copy of this FeedReference instance.

public FeedReference Clone()

Returns

FeedReference

The new copy of the FeedReference.

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Normalize()

Converts legacy elements, sets default values, etc..

public void Normalize()

Exceptions

InvalidDataException

A required property is not set or invalid.

ToString()

Returns the feed reference in the form "Source (Architecture, Languages)". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(FeedReference?, FeedReference?)

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

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

Parameters

left FeedReference

The left object

right FeedReference

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(FeedReference?, FeedReference?)

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

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

Parameters

left FeedReference

The left object

right FeedReference

The right object

Returns

bool

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

See Also