88 references to Null
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
232case JsonTokenType.Null:
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\EnumConverter.cs (1)
40case JsonTokenType.Null:
Internal\Json\NullValueConverter.cs (1)
30case JsonTokenType.Null:
Internal\Json\ValueConverter.cs (1)
53case JsonTokenType.Null:
Microsoft.AspNetCore.Http.Connections.Common (2)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88if (reader.TokenType == JsonTokenType.Null) 105if (reader.TokenType == JsonTokenType.Null)
Microsoft.AspNetCore.OpenApi (4)
Schemas\OpenApiJsonSchema.Helpers.cs (4)
22if (reader.TokenType == JsonTokenType.Null) 40if (reader.TokenType == JsonTokenType.Null) 57if (reader.TokenType == JsonTokenType.Null) 91if (reader.TokenType == JsonTokenType.Null)
Microsoft.AspNetCore.SignalR.Common (2)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88if (reader.TokenType == JsonTokenType.Null) 105if (reader.TokenType == JsonTokenType.Null)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88if (reader.TokenType == JsonTokenType.Null) 105if (reader.TokenType == JsonTokenType.Null)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
88if (reader.TokenType == JsonTokenType.Null) 105if (reader.TokenType == JsonTokenType.Null)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Protocol\Converters\NaturalObjectConverter.cs (1)
36case JsonTokenType.Null:
Protocol\Converters\StringEnumConverter.cs (1)
44else if (reader.TokenType == JsonTokenType.Null)
Protocol\Converters\SumConverter.cs (1)
188if (reader.TokenType == JsonTokenType.Null)
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
40if (reader.TokenType == JsonTokenType.Null)
Microsoft.Extensions.DependencyModel (3)
Utf8JsonReaderExtensions.cs (3)
93if (reader.TokenType == JsonTokenType.Null) 109if (reader.TokenType == JsonTokenType.Null) 124if (reader.TokenType == JsonTokenType.Null)
Microsoft.ML.SearchSpace (1)
Converter\ParameterConverter.cs (1)
39case JsonTokenType.Null:
Microsoft.ML.SearchSpace.Tests (8)
ParameterTest.cs (3)
96parameter["JTokenType"].AsType<JsonTokenType>().Should().Be(JsonTokenType.Null); 118parameter["JTokenType"].AsType<JsonTokenType>().Should().Be(JsonTokenType.Null); 171public JsonTokenType JTokenType { get; set; } = JsonTokenType.Null;
SearchSpaceTest.cs (5)
176param.BasicSS.JTokenType.Should().Be(JsonTokenType.Null); 188JTokenType = JsonTokenType.Null, 200param.JTokenType.Should().Be(JsonTokenType.Null); 347[Choice(new object[] { JsonTokenType.None, JsonTokenType.EndObject, JsonTokenType.StartArray, JsonTokenType.Null }, defaultValue: JsonTokenType.Null)]
System.Text.Json (56)
System\Text\Json\Document\JsonDocument.cs (4)
293if (tokenType == JsonTokenType.Null) 826case JsonTokenType.Null: 857case JsonTokenType.Null: 1068Debug.Assert(tokenType >= JsonTokenType.String && tokenType <= JsonTokenType.Null);
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
63Debug.Assert(jsonTokenType > JsonTokenType.None && jsonTokenType <= JsonTokenType.Null);
System\Text\Json\Document\JsonDocument.Parse.cs (3)
517case JsonTokenType.Null: 683Debug.Assert(tokenType == JsonTokenType.Null); 730tokenType != JsonTokenType.Null &&
System\Text\Json\Document\JsonElement.cs (4)
1448if (TokenType == JsonTokenType.Null) 1476if (TokenType == JsonTokenType.Null) 1504if (TokenType == JsonTokenType.Null) 1657case 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)
63case JsonTokenType.Null: 76(tokenType - JsonTokenType.String) <= (JsonTokenType.Null - JsonTokenType.String);
System\Text\Json\Reader\Utf8JsonReader.cs (3)
1074return ConsumeLiteral(JsonConstants.NullValue, JsonTokenType.Null); 2570JsonTokenType.Null => nameof(JsonTokenType.Null),
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
434return 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"/>). 29if (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)
21if (reader.TokenType is JsonTokenType.Null)
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
21if (reader.TokenType is JsonTokenType.Null)
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (2)
36if (!state.IsContinuation && reader.TokenType == JsonTokenType.Null) 85if (reader.TokenType == JsonTokenType.Null)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (2)
36if (!state.IsContinuation && reader.TokenType == JsonTokenType.Null) 87if (reader.TokenType == JsonTokenType.Null)
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
29case JsonTokenType.Null:
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
52case JsonTokenType.Null:
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
54case JsonTokenType.Null:
System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs (1)
25if (reader.TokenType is JsonTokenType.Null)
System\Text\Json\Serialization\Converters\Value\ByteArrayConverter.cs (1)
12if (reader.TokenType == JsonTokenType.Null)
System\Text\Json\Serialization\Converters\Value\MemoryByteConverter.cs (1)
15return reader.TokenType is JsonTokenType.Null ? default : reader.GetBytesFromBase64();
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (3)
30if (!state.IsContinuation && reader.TokenType == JsonTokenType.Null) 64if (reader.TokenType == JsonTokenType.Null) 87if (reader.TokenType == JsonTokenType.Null)
System\Text\Json\Serialization\Converters\Value\ReadOnlyMemoryByteConverter.cs (1)
15return reader.TokenType is JsonTokenType.Null ? default : reader.GetBytesFromBase64();
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (1)
14return reader.TokenType is JsonTokenType.Null ? null : ReadCore(ref reader);
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
22if (reader.TokenType is JsonTokenType.Null)
System\Text\Json\Serialization\JsonConverterOfT.cs (3)
62/// and whether <see cref="JsonTokenType.Null"/> should be passed on deserialization. 151if (reader.TokenType == JsonTokenType.Null && !HandleNullOnRead && !state.IsContinuation) 546if (!CanBePolymorphic && !(HandleNullOnRead && tokenType == JsonTokenType.Null))
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (1)
396case JsonTokenType.Null:
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
857if (reader.TokenType == JsonTokenType.Null) 906if (JsonTypeInfo.ElementType == JsonTypeInfo.ObjectType && reader.TokenType == JsonTokenType.Null)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
279bool isNullToken = reader.TokenType == JsonTokenType.Null; 368bool 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; 105_tokenType = JsonTokenType.Null; 130_tokenType = JsonTokenType.Null;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (1)
21_tokenType = JsonTokenType.Null;