JsonIntegerString Class

Converts a nullable integer (System.Int32) string to or from JSON.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public class JsonIntegerString : JsonConverter<int?>
Inheritance
Object    JsonConverter    JsonConverterNullableInt32    JsonIntegerString

Constructors

JsonIntegerStringInitializes a new instance of the JsonIntegerString 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 integer.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
WriteWrites a specified value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))

See Also