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
FeedUriThe interface URI of the changed implementation.
oldVersion
ImplementationVersionThe old version of the implementation;
null
if the implementation did not exist in the old selection.newVersion
ImplementationVersionThe 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
OldVersion
The old version of the implementation; null
if the implementation did not exist in the old selection.
public ImplementationVersion? OldVersion { get; }
Property Value
Uri
The interface URI of the changed implementation.
public FeedUri Uri { get; }
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
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
SelectionsDiffNodeThe left object
right
SelectionsDiffNodeThe 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
SelectionsDiffNodeThe left object
right
SelectionsDiffNodeThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.