JsonDecimalString Class

Converts a decimal (System.Decimal) string to or from JSON.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public class JsonDecimalString : JsonConverter<decimal?>
Inheritance
Object    JsonConverter    JsonConverterNullableDecimal    JsonDecimalString

Constructors

JsonDecimalStringInitializes a new instance of the JsonDecimalString class

Properties

HandleNull Gets a value that indicates whether null should be passed to the converter on serialization.
(Overrides JsonConverterTHandleNull)

Methods

ReadReads and converts the JSON to a nullable decimal.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
WriteWrites a specified value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))

See Also