Table of Contents

Class SelectionsDiffNode

Namespace
ZeroInstall.Store.ViewModel
Assembly
ZeroInstall.Store.dll

Models an implementation change between two Selections documents for display in a UI.

[Equatable]
public sealed class SelectionsDiffNode : IEquatable<SelectionsDiffNode>
Inheritance
SelectionsDiffNode
Implements
Inherited Members

Constructors

SelectionsDiffNode(FeedUri, ImplementationVersion?, ImplementationVersion?)

Creates a new selection diff.

public SelectionsDiffNode(FeedUri uri, ImplementationVersion? oldVersion = null, ImplementationVersion? newVersion = null)

Parameters

uri FeedUri

The interface URI of the changed implementation.

oldVersion ImplementationVersion

The old version of the implementation; null if the implementation did not exist in the old selection.

newVersion ImplementationVersion

The new version of the implementation; null if the implementation does not exist in the new selection.

Properties

NewVersion

The new version of the implementation; null if the implementation does not exist in the new selection.

public ImplementationVersion? NewVersion { get; }

Property Value

ImplementationVersion

OldVersion

The old version of the implementation; null if the implementation did not exist in the old selection.

public ImplementationVersion? OldVersion { get; }

Property Value

ImplementationVersion

Uri

The interface URI of the changed implementation.

public FeedUri Uri { get; }

Property Value

FeedUri

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(SelectionsDiffNode?, SelectionsDiffNode?)

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

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

Parameters

left SelectionsDiffNode

The left object

right SelectionsDiffNode

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(SelectionsDiffNode?, SelectionsDiffNode?)

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

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

Parameters

left SelectionsDiffNode

The left object

right SelectionsDiffNode

The right object

Returns

bool

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