Currency Currency
Currency Currency
DocFX + Singulink = ♥

Search Results for

    Method CreateDefaultable

    CreateDefaultable(decimal, string?)

    Creates a new MonetaryValue value with the specified amount and currency code from the Default currency registry. Allows creating default monetary values by passing 0 for the amount and null for the currency code. Currency code must be provided if the amount is non-zero.

    Declaration
    public static MonetaryValue CreateDefaultable(decimal amount, string? currencyCode)
    Parameters
    Type Name Description
    decimal amount
    string currencyCode
    Returns
    Type Description
    MonetaryValue

    CreateDefaultable(decimal, Currency?)

    Creates a new MonetaryValue value with the specified amount and currency. Allows creating default monetary values by passing 0 for the amount and null for the currency. Currency must be provided if the amount is non-zero.

    Declaration
    public static MonetaryValue CreateDefaultable(decimal amount, Currency? currency)
    Parameters
    Type Name Description
    decimal amount
    Currency currency
    Returns
    Type Description
    MonetaryValue
    © Singulink. All rights reserved.