Läs på engelska Redigera

Dela via


JsonSerializer.IsReflectionEnabledByDefault Property

Definition

Gets a value that indicates whether unconfigured JsonSerializerOptions instances should default to the reflection-based DefaultJsonTypeInfoResolver.

C#
public static bool IsReflectionEnabledByDefault { get; }

Property Value

Remarks

The value of the property is backed by the "System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault" AppContext setting and defaults to true if unset.

Applies to

Produkt Versioner
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)