Table of Contents

Class Format.Currency

Inheritance
Format.Currency
Implements
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

Currency: Use currency format for monetary values with ISO-4217 currency codes.

public record Format.Currency : Format.Number, IEquatable<Format>, Format.IMetricViewNumericFormat, IEquatable<Format.BaseNumber>, IEquatable<Format.Number>, IEquatable<Format.Currency>
Extension Methods

Constructors

Currency()

public Currency()

Currency(Currency)

[SetsRequiredMembers]
protected Currency(Format.Currency original)

Parameters

Type Name Description
Format.Currency original

Properties

CurrencyCode

ISO 4217 currency code (e.g., "USD", "EUR", "JPY")

public required string CurrencyCode { get; set; }

Property Value

Type Description
string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type Description
Type

Type

The type of format (i.e., "number", "currency", "percentage", "byte", "date", "datetime")

public override Format.FormatType Type { get; }

Property Value

Type Description
Format.FormatType

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

Type Name Description
object obj

Returns

Type Description
bool

Equals(Currency?)

public virtual bool Equals(Format.Currency? other)

Parameters

Type Name Description
Format.Currency other

Returns

Type Description
bool

Equals(Number?)

public override sealed bool Equals(Format.Number? other)

Parameters

Type Name Description
Format.Number other

Returns

Type Description
bool

GetHashCode()

public override int GetHashCode()

Returns

Type Description
int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

Type Name Description
StringBuilder builder

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

Operators

operator ==(Currency?, Currency?)

public static bool operator ==(Format.Currency? left, Format.Currency? right)

Parameters

Type Name Description
Format.Currency left
Format.Currency right

Returns

Type Description
bool

operator !=(Currency?, Currency?)

public static bool operator !=(Format.Currency? left, Format.Currency? right)

Parameters

Type Name Description
Format.Currency left
Format.Currency right

Returns

Type Description
bool