Table of Contents

Method GetDecimal

Namespace
Sisk.Core.Entity
Assembly
Sisk.Core.dll

GetDecimal(IFormatProvider?)

Parses the value contained in this StringValue as a decimal. Throws an exception if the value couldn't be parsed to the target type.

public decimal GetDecimal(IFormatProvider? formatProvider = null)

Parameters

formatProvider IFormatProvider

The IFormatProvider to use for parsing. Defaults to null.

Returns

decimal

The converted decimal.

Exceptions

FormatException

Thrown when the value cannot be parsed to a decimal.