JsonSerializableAttribute.GenerationMode Property

Definition

Gets or sets the mode that indicates what the source generator should generate for the type. If the value is Default, then the setting specified on GenerationMode will be used.

C#
public System.Text.Json.Serialization.JsonSourceGenerationMode GenerationMode { get; set; }

Property Value

Applies to

Toode Versioonid
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)