14 writes to DefaultIgnoreCondition
Microsoft.AspNetCore.Components.Endpoints (3)
Assets\ImportMapSerializerContext.cs (1)
19DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
src\Shared\Components\ServerComponentSerializationSettings.cs (1)
18DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
src\Shared\Components\WebAssemblyComponentSerializationSettings.cs (1)
16DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
Microsoft.AspNetCore.Components.Server (1)
src\Shared\Components\ServerComponentSerializationSettings.cs (1)
18DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Shared\Components\WebAssemblyComponentSerializationSettings.cs (1)
16DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
26DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
Microsoft.AspNetCore.Http.Results.Tests (1)
JsonResultTests.cs (1)
82DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\JsonHubProtocolTests.cs (1)
32DefaultIgnoreCondition = ignoreNullValues ? System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault : System.Text.Json.Serialization.JsonIgnoreCondition.Never,
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
930DefaultIgnoreCondition = JsonIgnoreCondition.Never,
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Defaults.cs (1)
35DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
37DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
68DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
Microsoft.ML.SearchSpace.Tests (2)
ParameterTest.cs (1)
24DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
SearchSpaceTest.cs (1)
27DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
10 references to DefaultIgnoreCondition
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
34Assert.Equal(JsonIgnoreCondition.WhenWritingNull, options.DefaultIgnoreCondition);
System.Text.Json (9)
src\libraries\System.Text.Json\Common\JsonIgnoreCondition.cs (2)
7/// When specified on <see cref="JsonSerializerOptions.DefaultIgnoreCondition"/>, 11/// overrides the setting on <see cref="JsonSerializerOptions.DefaultIgnoreCondition"/>.
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
64/// Specifies the default value of <see cref="JsonSerializerOptions.DefaultIgnoreCondition"/> when set.
System\Text\Json\Serialization\JsonSerializerContext.cs (2)
72options.DefaultIgnoreCondition == generatedSerializerOptions.DefaultIgnoreCondition &&
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
379/// or <see cref="DefaultIgnoreCondition"/> has been set to a non-default value. These properties cannot be used together.
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (3)
506Debug.Assert(Options.DefaultIgnoreCondition == JsonIgnoreCondition.Never); 513else if (Options.DefaultIgnoreCondition == JsonIgnoreCondition.WhenWritingNull) 520else if (Options.DefaultIgnoreCondition == JsonIgnoreCondition.WhenWritingDefault)