Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Struct

Money

struct Money

Module: System.Globalization
Assembly: System.Runtime.dll
Source file: Money.rvn

Inheritance: Object → ValueType → Money
Implements: EquatableTo<Money>, Formattable

A monetary value with explicit currency identity and unchanged Decimal precision. Record equality, hashing and positional deconstruction include both components. The default value is zero in Currency.Unspecified; construction never rounds or converts.

Constructors

1 item
Money(Amount: decimal, Currency: Currency) A monetary value with explicit currency identity and unchanged Decimal precision. Record equality, hashing and positional deconstruction include both components. The default value…

Properties

2 items
Amount: decimal No summary available.
Currency: Currency No summary available.

Methods

10 items
Equals(other: Money) -> bool No summary available. Implements EquatableTo<Money>.Equals
Equals(obj: object?) -> bool No summary available. Overrides Object.Equals
Format(culture: Culture) -> string Formats the stored currency with its default display precision and explicit culture. Display rounding never changes Amount; culture never changes Currency.
Format(precision: int, culture: Culture) -> string Formats the stored currency with fractional precision 0–99; invalid precision faults.
GetHashCode() -> int No summary available. Overrides Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Static member: Parse(text: string, currency: Currency, culture: Culture) -> Result<Money, NumberParseError> Parses an explicitly expected currency; symbols never infer currency identity. Exact culture punctuation, spacing and direction marks are required.
ToString(format: string, culture: Culture) -> string Formats empty or C/c with optional precision 0–99, always using the stored currency. Other specifiers fault. Parameterless ToString retains the generated record representation. Implements Formattable.ToString
ToString() -> string No summary available. Overrides Object.ToString

Operators

2 items
Static member: operator ==(left: Money, right: Money) -> bool No summary available.
Static member: operator !=(left: Money, right: Money) -> bool No summary available.