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
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
objectThe object to compare with the current object.
Returns
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
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
FeedReferenceThe left object
right
FeedReferenceThe 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
FeedReferenceThe left object
right
FeedReferenceThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.