Class FeedElement
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Abstract base class for XML serializable classes that are part of the Zero Install feed model.
[Equatable]
public abstract class FeedElement : XmlUnknown, IEquatable<XmlUnknown>, IEquatable<FeedElement>
- Inheritance
-
FeedElement
- Implements
- Derived
- Inherited Members
Remarks
Does not include ZeroInstall.Model.Capabilities.
Properties
IfZeroInstallVersion
Only process this element if the current Zero Install version matches the range.
[Browsable(false)]
public VersionRange? IfZeroInstallVersion { get; set; }
Property Value
Methods
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
Equals(FeedElement?)
protected bool Equals(FeedElement? other)
Parameters
other
FeedElement
Returns
FilterMismatch(IRecipeStep)
Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.
protected static bool FilterMismatch(IRecipeStep step)
Parameters
step
IRecipeStep
Returns
FilterMismatch<T>(T)
Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.
protected static bool FilterMismatch<T>(T element) where T : FeedElement?
Parameters
element
T
Returns
Type Parameters
T
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(FeedElement?, FeedElement?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(FeedElement? left, FeedElement? right)
Parameters
left
FeedElementThe left object
right
FeedElementThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(FeedElement?, FeedElement?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(FeedElement? left, FeedElement? right)
Parameters
left
FeedElementThe left object
right
FeedElementThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.