Table of Contents

Class ManifestFile

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

Base class for file entries in a Manifest.

public abstract record ManifestFile : ManifestElement, IEquatable<ManifestElement>, IEquatable<ManifestFile>
Inheritance
object
ManifestFile
Implements
Derived
Inherited Members

Constructors

ManifestFile(string, UnixTime, long)

Base class for file entries in a Manifest.

protected ManifestFile(string Digest, UnixTime ModifiedTime, long Size)

Parameters

Digest string

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

ModifiedTime UnixTime

The time this file was last modified.

Size long

The size of the file in bytes.

ManifestFile(ManifestFile)

protected ManifestFile(ManifestFile original)

Parameters

original ManifestFile

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

ModifiedTime

The time this file was last modified.

public UnixTime ModifiedTime { get; init; }

Property Value

UnixTime

Methods

Deconstruct(out string, out UnixTime, out long)

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

Parameters

Digest string
ModifiedTime UnixTime
Size long

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ManifestElement?)

public override sealed bool Equals(ManifestElement? other)

Parameters

other ManifestElement

Returns

bool

Equals(ManifestFile?)

public virtual bool Equals(ManifestFile? other)

Parameters

other ManifestFile

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ManifestFile?, ManifestFile?)

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

Parameters

left ManifestFile
right ManifestFile

Returns

bool

operator !=(ManifestFile?, ManifestFile?)

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

Parameters

left ManifestFile
right ManifestFile

Returns

bool