Table of Contents

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

Properties

IfZeroInstallVersion

Only process this element if the current Zero Install version matches the range.

[Browsable(false)]
public VersionRange? IfZeroInstallVersion { get; set; }

Property Value

VersionRange

Methods

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.

Equals(FeedElement?)

protected bool Equals(FeedElement? other)

Parameters

other FeedElement

Returns

bool

FilterMismatch(IRecipeStep)

Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.

protected static bool FilterMismatch(IRecipeStep step)

Parameters

step IRecipeStep

Returns

bool

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

bool

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 FeedElement

The left object

right FeedElement

The 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 FeedElement

The left object

right FeedElement

The right object

Returns

bool

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