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
originalAssetMetadata
Properties
Empty
Gets an empty AssetMetadata instance with all properties set to empty strings.
public static AssetMetadata Empty { get; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Manufacturer
Gets the manufacturer of the asset.
public required string Manufacturer { get; init; }
Property Value
Product
Gets the product of the asset.
public required string Product { get; init; }
Property Value
SerialNumber
Gets the serial number of the asset.
public required string SerialNumber { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(AssetMetadata?)
public virtual bool Equals(AssetMetadata? other)
Parameters
otherAssetMetadata
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(AssetMetadata?, AssetMetadata?)
public static bool operator ==(AssetMetadata? left, AssetMetadata? right)
Parameters
leftAssetMetadatarightAssetMetadata
Returns
operator !=(AssetMetadata?, AssetMetadata?)
public static bool operator !=(AssetMetadata? left, AssetMetadata? right)
Parameters
leftAssetMetadatarightAssetMetadata