145 references to Null
aspire (3)
Configuration\FlexibleBooleanDictionaryConverter.cs (1)
18
if (reader.TokenType == JsonTokenType.
Null
)
Configuration\PackageEntry.cs (1)
105
if (reader.TokenType == JsonTokenType.
Null
)
src\Shared\RequestIdTypeInfoResolver.cs (1)
41
JsonTokenType.
Null
=> RequestId.Null,
Aspire.Dashboard (1)
Model\TextVisualizerViewModel.cs (1)
182
case JsonTokenType.
Null
:
Aspire.Hosting (2)
Dcp\Model\KubernetesMicroTimeJsonConverter.cs (1)
17
if (reader.TokenType is JsonTokenType.
Null
)
src\Shared\RequestIdTypeInfoResolver.cs (1)
41
JsonTokenType.
Null
=> RequestId.Null,
Aspire.Hosting.Browsers (1)
BrowserLogsCdpProtocol.cs (1)
827
JsonTokenType.
Null
=> BrowserLogsCdpProtocolNullValue.Instance,
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
827
JsonTokenType.
Null
=> BrowserLogsCdpProtocolNullValue.Instance,
Aspire.Hosting.Native.Server (2)
Dcp\DcpStates.cs (2)
113
if (reader.TokenType is not (JsonTokenType.String or JsonTokenType.
Null
))
146
if (reader.TokenType is not (JsonTokenType.String or JsonTokenType.
Null
))
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
306
if (reader.TokenType == JsonTokenType.
Null
)
Aspire.TerminalHost (1)
src\Shared\RequestIdTypeInfoResolver.cs (1)
41
JsonTokenType.
Null
=> RequestId.Null,
Microsoft.AspNetCore.Components.Endpoints (2)
BrowserConfiguration\BrowserOptionsJsonConverters.cs (2)
14
=> reader.TokenType is JsonTokenType.
Null
? null : TimeSpan.FromMilliseconds(reader.GetDouble());
35
=> reader.TokenType is JsonTokenType.
Null
? null : !reader.GetBoolean();
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\EnumConverter.cs (1)
33
case JsonTokenType.
Null
:
Internal\Json\NullValueConverter.cs (1)
30
case JsonTokenType.
Null
:
Internal\Json\ValueConverter.cs (1)
53
case JsonTokenType.
Null
:
Microsoft.AspNetCore.Http.Connections.Common (2)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88
if (reader.TokenType == JsonTokenType.
Null
)
105
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (1)
30
if (reader.TokenType == JsonTokenType.
Null
)
Converters\JsonPatchDocumentConverter.cs (1)
29
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.AspNetCore.OpenApi (4)
Schemas\OpenApiJsonSchema.Helpers.cs (4)
26
if (reader.TokenType == JsonTokenType.
Null
)
44
if (reader.TokenType == JsonTokenType.
Null
)
62
if (reader.TokenType == JsonTokenType.
Null
)
96
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.AspNetCore.SignalR.Common (2)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88
if (reader.TokenType == JsonTokenType.
Null
)
105
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88
if (reader.TokenType == JsonTokenType.
Null
)
105
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88
if (reader.TokenType == JsonTokenType.
Null
)
105
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.Build.NuGetSdkResolver (3)
src\nuget-client\build\Shared\Utf8JsonReaderExtensions.cs (1)
26
case JsonTokenType.
Null
:
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (2)
103
JsonTokenType.
Null
=> null,
141
if (TokenType == JsonTokenType.
Null
)
Microsoft.Diagnostics.DataContractReader (4)
ContractDescriptorParser.cs (4)
39
if (reader.TokenType == JsonTokenType.
Null
)
206
if (reader.TokenType == JsonTokenType.
Null
)
304
if (reader.TokenType == JsonTokenType.
Null
)
313
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.DotNet.HotReload.Utils.Generator.Data (1)
Script\Json\ScriptCapabilitiesConverter.cs (1)
19
JsonTokenType.
Null
=> string.Empty,
Microsoft.Extensions.DependencyModel (3)
Utf8JsonReaderExtensions.cs (3)
93
if (reader.TokenType == JsonTokenType.
Null
)
109
if (reader.TokenType == JsonTokenType.
Null
)
124
if (reader.TokenType == JsonTokenType.
Null
)
Microsoft.ML.SearchSpace (1)
Converter\ParameterConverter.cs (1)
39
case JsonTokenType.
Null
:
Microsoft.ML.SearchSpace.Tests (8)
ParameterTest.cs (3)
95
Assert.Equal(JsonTokenType.
Null
, parameter["JTokenType"].AsType<JsonTokenType>());
117
Assert.Equal(JsonTokenType.
Null
, parameter["JTokenType"].AsType<JsonTokenType>());
170
public JsonTokenType JTokenType { get; set; } = JsonTokenType.
Null
;
SearchSpaceTest.cs (5)
175
Assert.Equal(JsonTokenType.
Null
, param.BasicSS.JTokenType);
187
JTokenType = JsonTokenType.
Null
,
199
Assert.Equal(JsonTokenType.
Null
, param.JTokenType);
346
[Choice(new object[] { JsonTokenType.None, JsonTokenType.EndObject, JsonTokenType.StartArray, JsonTokenType.
Null
}, defaultValue: JsonTokenType.
Null
)]
Microsoft.TestPlatform.CommunicationUtilities (10)
Serialization\AfterTestRunEndResultConverter.cs (1)
26
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\DiscoveryCriteriaConverter.cs (1)
24
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\ExceptionConverter.cs (1)
29
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\ObjectConverter.cs (2)
33
JsonTokenType.
Null
=> null,
103
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\TestProcessAttachDebuggerPayloadConverter.cs (1)
23
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\TestPropertyConverter.cs (1)
23
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\TestRunChangedEventArgsConverter.cs (1)
25
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\TestRunCompleteEventArgsConverter.cs (1)
26
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\TestSessionInfoConverter.cs (1)
22
if (reader.TokenType == JsonTokenType.
Null
)
NuGet.Packaging (3)
src\nuget-client\build\Shared\Utf8JsonReaderExtensions.cs (1)
26
case JsonTokenType.
Null
:
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (2)
103
JsonTokenType.
Null
=> null,
141
if (TokenType == JsonTokenType.
Null
)
NuGet.ProjectModel (3)
src\nuget-client\build\Shared\Utf8JsonReaderExtensions.cs (1)
26
case JsonTokenType.
Null
:
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (2)
103
JsonTokenType.
Null
=> null,
141
if (TokenType == JsonTokenType.
Null
)
NuGet.Protocol (12)
Converters\MetadataFieldStjConverter.cs (2)
25
if (reader.TokenType == JsonTokenType.
Null
)
37
string? s = reader.TokenType == JsonTokenType.
Null
Converters\MetadataStringOrArrayStjConverter.cs (3)
26
if (reader.TokenType == JsonTokenType.
Null
)
48
string? first = reader.TokenType == JsonTokenType.
Null
? null : reader.CoerceScalarTokenToString();
64
if (reader.TokenType != JsonTokenType.
Null
)
Converters\NuGetFrameworkStjConverter.cs (1)
23
JsonTokenType.
Null
=> null,
Converters\NuGetVersionStjConverter.cs (1)
21
JsonTokenType.
Null
=> null,
Converters\PackageDependencyGroupStjConverter.cs (2)
44
if (reader.TokenType != JsonTokenType.
Null
)
63
else if (reader.TokenType != JsonTokenType.
Null
)
Converters\SafeBoolStjConverter.cs (1)
23
case JsonTokenType.
Null
:
Plugins\RawJsonStringConverter.cs (1)
15
if (reader.TokenType == JsonTokenType.
Null
)
Plugins\StjSemanticVersionConverter.cs (1)
16
if (reader.TokenType == JsonTokenType.
Null
)
rzc (1)
Json\ObjectJsonConverter`1.cs (1)
17
if (reader.TokenType == JsonTokenType.
Null
)
System.Text.Json (65)
System\Text\Json\Document\JsonDocument.cs (4)
290
if (tokenType == JsonTokenType.
Null
)
759
case JsonTokenType.
Null
:
790
case JsonTokenType.
Null
:
1001
Debug.Assert(tokenType is >= JsonTokenType.String and <= JsonTokenType.
Null
);
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
57
Debug.Assert(jsonTokenType is > JsonTokenType.None and <= JsonTokenType.
Null
);
System\Text\Json\Document\JsonDocument.Parse.cs (3)
537
case JsonTokenType.
Null
:
703
Debug.Assert(tokenType == JsonTokenType.
Null
);
761
tokenType is not (JsonTokenType.
Null
or JsonTokenType.False or JsonTokenType.True));
System\Text\Json\Document\JsonElement.cs (4)
1443
if (TokenType == JsonTokenType.
Null
)
1471
if (TokenType == JsonTokenType.
Null
)
1501
if (TokenType == JsonTokenType.
Null
)
1653
case JsonTokenType.
Null
:
System\Text\Json\JsonTokenType.cs (1)
19
/// Indicates that there is no value (as distinct from <see cref="
Null
"/>).
System\Text\Json\Reader\JsonReaderHelper.cs (2)
125
case JsonTokenType.
Null
:
138
(tokenType - JsonTokenType.String) <= (JsonTokenType.
Null
- JsonTokenType.String);
System\Text\Json\Reader\Utf8JsonReader.cs (3)
1108
return ConsumeLiteral(JsonConstants.NullValue, JsonTokenType.
Null
);
2603
JsonTokenType.
Null
=> nameof(JsonTokenType.
Null
),
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
434
return ConsumeLiteralMultiSegment(JsonConstants.NullValue, JsonTokenType.
Null
);
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (5)
18
/// Returns <see langword="null" /> when <see cref="TokenType"/> is <see cref="JsonTokenType.
Null
"/>.
23
/// <see cref="JsonTokenType.
Null
"/>).
29
if (TokenType == JsonTokenType.
Null
)
56
/// Unlike <see cref="GetString"/>, this method does not support <see cref="JsonTokenType.
Null
"/>.
120
/// Unlike <see cref="GetString"/>, this method does not support <see cref="JsonTokenType.
Null
"/>.
System\Text\Json\Serialization\Attributes\JsonUnionAttribute.cs (1)
51
/// The classifier is not invoked for JSON <see cref="JsonTokenType.
Null
"/>
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (1)
21
if (reader.TokenType is JsonTokenType.
Null
&& state.Current.ReturnValue is null)
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
21
if (reader.TokenType is JsonTokenType.
Null
&& state.Current.ReturnValue is null)
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (2)
36
if (!state.IsContinuation && reader.TokenType == JsonTokenType.
Null
)
85
if (reader.TokenType == JsonTokenType.
Null
)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (2)
36
if (!state.IsContinuation && reader.TokenType == JsonTokenType.
Null
)
87
if (reader.TokenType == JsonTokenType.
Null
)
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
31
case JsonTokenType.
Null
:
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (2)
50
case JsonTokenType.
Null
:
71
case JsonTokenType.
Null
:
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
69
case JsonTokenType.
Null
:
System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs (1)
25
if (reader.TokenType is JsonTokenType.
Null
)
System\Text\Json\Serialization\Converters\Union\JsonUnionConverter.cs (2)
41
if (reader.TokenType is JsonTokenType.
Null
)
147
JsonTokenType.
Null
=> JsonValueType.Null,
System\Text\Json\Serialization\Converters\Value\ByteArrayConverter.cs (1)
12
if (reader.TokenType == JsonTokenType.
Null
)
System\Text\Json\Serialization\Converters\Value\MemoryByteConverter.cs (1)
15
return reader.TokenType is JsonTokenType.
Null
? default : reader.GetBytesFromBase64();
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (3)
33
if (!state.IsContinuation && reader.TokenType == JsonTokenType.
Null
&&
68
if (reader.TokenType == JsonTokenType.
Null
)
91
if (reader.TokenType == JsonTokenType.
Null
)
System\Text\Json\Serialization\Converters\Value\ReadOnlyMemoryByteConverter.cs (1)
15
return reader.TokenType is JsonTokenType.
Null
? default : reader.GetBytesFromBase64();
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (1)
14
return reader.TokenType is JsonTokenType.
Null
? null : ReadCore(ref reader);
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
19
if (reader.TokenType is JsonTokenType.
Null
)
System\Text\Json\Serialization\JsonConverterOfT.cs (3)
62
/// and whether <see cref="JsonTokenType.
Null
"/> should be passed on deserialization.
151
if (reader.TokenType == JsonTokenType.
Null
&& !HandleNullOnRead && !state.IsContinuation)
562
if (!CanBePolymorphic && !SupportsMultipleTokenTypes && !(HandleNullOnRead && tokenType == JsonTokenType.
Null
))
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (1)
393
case JsonTokenType.
Null
:
System\Text\Json\Serialization\JsonTypeClassifier.cs (2)
19
/// <see cref="JsonTokenType.
Null
"/> token. Per the union semantics, every nullable case
24
/// Classifier authors therefore do not need to handle the <see cref="JsonTokenType.
Null
"/> token.
System\Text\Json\Serialization\JsonTypeClassifierFactory.cs (1)
37
/// payload is a JSON <see cref="JsonTokenType.
Null
"/> token. The converter handles
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
853
if (reader.TokenType == JsonTokenType.
Null
)
918
if (JsonTypeInfo.ElementType == typeof(object) && reader.TokenType == JsonTokenType.
Null
)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
279
bool isNullToken = reader.TokenType == JsonTokenType.
Null
;
368
bool isNullToken = reader.TokenType == JsonTokenType.
Null
;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
510
/// converter encounters a JSON <see cref="JsonTokenType.
Null
"/> token, it bypasses
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
187
/// converter encounters a JSON <see cref="JsonTokenType.
Null
"/> token, in which
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (5)
23
_tokenType = JsonTokenType.
Null
;
34
_tokenType = JsonTokenType.
Null
;
45
_tokenType = JsonTokenType.
Null
;
102
_tokenType = JsonTokenType.
Null
;
127
_tokenType = JsonTokenType.
Null
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (1)
21
_tokenType = JsonTokenType.
Null
;