Table of Contents

Class AssetMetadata

Namespace
Tudormobile.IronLedgerLib
Assembly
Tudormobile.IronLedgerLib.dll

Contains metadata information about an asset.

public record AssetMetadata : IEquatable<AssetMetadata>
Inheritance
AssetMetadata
Implements
Inherited Members

Constructors

AssetMetadata()

public AssetMetadata()

AssetMetadata(AssetMetadata)

protected AssetMetadata(AssetMetadata original)

Parameters

original AssetMetadata

Properties

Empty

Gets an empty AssetMetadata instance with all properties set to empty strings.

public static AssetMetadata Empty { get; }

Property Value

AssetMetadata

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Manufacturer

Gets the manufacturer of the asset.

public required string Manufacturer { get; init; }

Property Value

string

Product

Gets the product of the asset.

public required string Product { get; init; }

Property Value

string

SerialNumber

Gets the serial number of the asset.

public required string SerialNumber { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(AssetMetadata?)

public virtual bool Equals(AssetMetadata? other)

Parameters

other AssetMetadata

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AssetMetadata?, AssetMetadata?)

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

Parameters

left AssetMetadata
right AssetMetadata

Returns

bool

operator !=(AssetMetadata?, AssetMetadata?)

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

Parameters

left AssetMetadata
right AssetMetadata

Returns

bool