Class InterfaceReference
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
A reference to an interface URI, e.g. for specifying which interface this feed implements or by which interface it is replaced.
[Serializable]
[Equatable]
public sealed class InterfaceReference : FeedElement, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<InterfaceReference>, IEquatable<InterfaceReference>
- Inheritance
-
InterfaceReference
- Implements
- Inherited Members
Properties
Target
The URI used to locate the interface.
[Browsable(false)]
public required FeedUri Target { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this InterfaceReference instance.
public InterfaceReference Clone()
Returns
- InterfaceReference
The new copy of the InterfaceReference.
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 interface reference in the form "Target". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(InterfaceReference?, InterfaceReference?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(InterfaceReference? left, InterfaceReference? right)
Parameters
left
InterfaceReferenceThe left object
right
InterfaceReferenceThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(InterfaceReference?, InterfaceReference?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(InterfaceReference? left, InterfaceReference? right)
Parameters
left
InterfaceReferenceThe left object
right
InterfaceReferenceThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.