JsonConverter<T>.HandleNull Property

Definition

Gets a value that indicates whether null should be passed to the converter on serialization, and whether Null should be passed on deserialization.

public virtual bool HandleNull { get; }

Property Value

Remarks

The default value is true for converters for value types, and false for converters for reference types.

Applies to

Product Versions
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)