Table of Contents

Class TrustNode

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

Represents a Key-Domain pair in a TrustDB for display in a UI.

public sealed record TrustNode : INamed, IEquatable<TrustNode>
Inheritance
object
TrustNode
Implements

Constructors

TrustNode(string, Domain)

Represents a Key-Domain pair in a TrustDB for display in a UI.

public TrustNode(string Fingerprint, Domain Domain)

Parameters

Fingerprint string

The Fingerprint.

Domain Domain

The domain the fingerprint is valid for.

Properties

Domain

The domain the fingerprint is valid for.

public Domain Domain { get; init; }

Property Value

Domain

Fingerprint

public string Fingerprint { get; init; }

Property Value

string

Name

The full name of the node used for tree hierarchies.

[Browsable(false)]
public string Name { get; set; }

Property Value

string

Methods

Deconstruct(out string, out Domain)

public void Deconstruct(out string Fingerprint, out Domain Domain)

Parameters

Fingerprint string
Domain Domain

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(TrustNode?)

public bool Equals(TrustNode? other)

Parameters

other TrustNode

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TrustNode?, TrustNode?)

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

Parameters

left TrustNode
right TrustNode

Returns

bool

operator !=(TrustNode?, TrustNode?)

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

Parameters

left TrustNode
right TrustNode

Returns

bool