95 references to Null
aspire (1)
Configuration\FlexibleBooleanDictionaryConverter.cs (1)
18
if (reader.TokenType == JsonTokenType.
Null
)
Aspire.Dashboard (1)
Model\TextVisualizerViewModel.cs (1)
173
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.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.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)
96
parameter["JTokenType"].AsType<JsonTokenType>().Should().Be(JsonTokenType.
Null
);
118
parameter["JTokenType"].AsType<JsonTokenType>().Should().Be(JsonTokenType.
Null
);
171
public JsonTokenType JTokenType { get; set; } = JsonTokenType.
Null
;
SearchSpaceTest.cs (5)
176
param.BasicSS.JTokenType.Should().Be(JsonTokenType.
Null
);
188
JTokenType = JsonTokenType.
Null
,
200
param.JTokenType.Should().Be(JsonTokenType.
Null
);
347
[Choice(new object[] { JsonTokenType.None, JsonTokenType.EndObject, JsonTokenType.StartArray, JsonTokenType.
Null
}, defaultValue: JsonTokenType.
Null
)]
Microsoft.TestPlatform.CommunicationUtilities (9)
Serialization\AfterTestRunEndResultConverter.cs (1)
26
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\DiscoveryCriteriaConverter.cs (1)
25
if (reader.TokenType == JsonTokenType.
Null
)
Serialization\ObjectConverter.cs (2)
33
JsonTokenType.
Null
=> null,
101
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)
23
if (reader.TokenType == JsonTokenType.
Null
)
NuGet.ProjectModel (2)
src\nuget-client\build\Shared\Utf8JsonReaderExtensions.cs (1)
26
case JsonTokenType.
Null
:
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (1)
126
if (TokenType == JsonTokenType.
Null
)
NuGet.Protocol (5)
Converters\MetadataFieldStjConverter.cs (2)
25
if (reader.TokenType == JsonTokenType.
Null
)
37
string? s = reader.TokenType == JsonTokenType.
Null
Converters\NuGetFrameworkStjConverter.cs (1)
23
JsonTokenType.
Null
=> null,
Converters\NuGetVersionStjConverter.cs (1)
21
JsonTokenType.
Null
=> null,
Converters\SafeBoolStjConverter.cs (1)
23
case JsonTokenType.
Null
:
rzc (1)
Json\ObjectJsonConverter`1.cs (1)
17
if (reader.TokenType == JsonTokenType.
Null
)
System.Text.Json (57)
System\Text\Json\Document\JsonDocument.cs (4)
290
if (tokenType == JsonTokenType.
Null
)
759
case JsonTokenType.
Null
:
790
case JsonTokenType.
Null
:
1001
Debug.Assert(tokenType >= JsonTokenType.String && tokenType <= JsonTokenType.
Null
);
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
57
Debug.Assert(jsonTokenType > JsonTokenType.None && jsonTokenType <= JsonTokenType.
Null
);
System\Text\Json\Document\JsonDocument.Parse.cs (3)
537
case JsonTokenType.
Null
:
703
Debug.Assert(tokenType == JsonTokenType.
Null
);
761
tokenType != JsonTokenType.
Null
&&
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)
134
case JsonTokenType.
Null
:
147
(tokenType - JsonTokenType.String) <= (JsonTokenType.
Null
- JsonTokenType.String);
System\Text\Json\Reader\Utf8JsonReader.cs (3)
1074
return ConsumeLiteral(JsonConstants.NullValue, JsonTokenType.
Null
);
2570
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\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\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)
30
if (!state.IsContinuation && reader.TokenType == JsonTokenType.
Null
)
64
if (reader.TokenType == JsonTokenType.
Null
)
87
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\Metadata\JsonPropertyInfo.cs (2)
854
if (reader.TokenType == JsonTokenType.
Null
)
927
if (JsonTypeInfo.ElementType == JsonTypeInfo.ObjectType && 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\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
;