Show / Hide Table of Contents

Class SelectionsDiffNode

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

Inheritance
Object
SelectionsDiffNode
Implements
IEquatable<SelectionsDiffNode>
Namespace: ZeroInstall.Store.ViewModel
Assembly: ZeroInstall.Store.dll
Syntax
public sealed class SelectionsDiffNode : Object

Constructors

SelectionsDiffNode(FeedUri, ImplementationVersion, ImplementationVersion)

Creates a new selection diff.

Declaration
public SelectionsDiffNode(FeedUri uri, ImplementationVersion oldVersion = null, ImplementationVersion newVersion = null)
Parameters
Type Name Description
FeedUri uri

The interface URI of the changed implementation.

ImplementationVersion oldVersion

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

ImplementationVersion newVersion

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.

Declaration
public ImplementationVersion NewVersion { get; }
Property Value
Type Description
ImplementationVersion

OldVersion

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

Declaration
public ImplementationVersion OldVersion { get; }
Property Value
Type Description
ImplementationVersion

Uri

The interface URI of the changed implementation.

Declaration
public FeedUri Uri { get; }
Property Value
Type Description
FeedUri

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

Equals(SelectionsDiffNode)

Declaration
public bool Equals(SelectionsDiffNode other)
Parameters
Type Name Description
SelectionsDiffNode other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

ToString()

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(SelectionsDiffNode, SelectionsDiffNode)

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

Declaration
public static bool operator ==(SelectionsDiffNode left, SelectionsDiffNode right)
Parameters
Type Name Description
SelectionsDiffNode left

The left object

SelectionsDiffNode right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(SelectionsDiffNode, SelectionsDiffNode)

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

Declaration
public static bool operator !=(SelectionsDiffNode left, SelectionsDiffNode right)
Parameters
Type Name Description
SelectionsDiffNode left

The left object

SelectionsDiffNode right

The right object

Returns
Type Description
Boolean

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

Implements

System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher et al