4 writes to TypeDiscriminator
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (4)
20TypeDiscriminator = null; 31TypeDiscriminator = typeDiscriminator; 42TypeDiscriminator = typeDiscriminator; 49TypeDiscriminator = typeDiscriminator;
5 references to TypeDiscriminator
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
376if (derivedType.TypeDiscriminator is { } discriminator)
System.Text.Json (4)
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
111bool containsTypesWithoutDiscriminator = derivedTypes.Exists(static derivedTypes => derivedTypes.TypeDiscriminator is null); 119Debug.Assert(derivedType.TypeDiscriminator is null or int or string); 122if (derivedType.TypeDiscriminator is { } discriminatorValue)
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (1)
65typeDiscriminator = TypeDiscriminator;