Table of Contents

Class AssetRecord

Namespace
Tudormobile.IronLedgerLib
Assembly
Tudormobile.IronLedgerLib.dll

Represents a stored asset with its identity and component data.

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

Constructors

AssetRecord()

public AssetRecord()

AssetRecord(AssetRecord)

protected AssetRecord(AssetRecord original)

Parameters

original AssetRecord

Properties

Components

Gets the aggregated system component data for this asset.

public required SystemComponentData Components { get; init; }

Property Value

SystemComponentData

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Id

Gets the asset identifier, which provides a stable unique key derived from hardware metadata.

public required AssetId Id { get; init; }

Property Value

AssetId

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(AssetRecord?)

public virtual bool Equals(AssetRecord? other)

Parameters

other AssetRecord

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 ==(AssetRecord?, AssetRecord?)

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

Parameters

left AssetRecord
right AssetRecord

Returns

bool

operator !=(AssetRecord?, AssetRecord?)

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

Parameters

left AssetRecord
right AssetRecord

Returns

bool