Table of Contents

Class ManifestElement

Namespace
ZeroInstall.Store.Manifests
Assembly
ZeroInstall.Store.dll

Base class for directory-element entries (files and symlinks) in a Manifest.

public abstract record ManifestElement : IEquatable<ManifestElement>
Inheritance
object
ManifestElement
Implements
Derived

Constructors

ManifestElement(string, long)

Base class for directory-element entries (files and symlinks) in a Manifest.

protected ManifestElement(string Digest, long Size)

Parameters

Digest string

The digest of the content of the element calculated using the selected digest algorithm.

Size long

The size of the element in bytes.

ManifestElement(ManifestElement)

protected ManifestElement(ManifestElement original)

Parameters

original ManifestElement

Properties

Digest

The digest of the content of the element calculated using the selected digest algorithm.

public string Digest { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Size

The size of the element in bytes.

public long Size { get; init; }

Property Value

long

Methods

Deconstruct(out string, out long)

public void Deconstruct(out string Digest, out long Size)

Parameters

Digest string
Size long

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ManifestElement?)

public virtual bool Equals(ManifestElement? other)

Parameters

other ManifestElement

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToLine(string)

Formats the element in the Manifest line format.

public abstract string ToLine(string name)

Parameters

name string

The name of the element.

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ManifestElement?, ManifestElement?)

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

Parameters

left ManifestElement
right ManifestElement

Returns

bool

operator !=(ManifestElement?, ManifestElement?)

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

Parameters

left ManifestElement
right ManifestElement

Returns

bool