89 references to None
Microsoft.AspNetCore.Http.Connections.Common (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
38case JsonTokenType.None:
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
38case JsonTokenType.None:
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
38case JsonTokenType.None:
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
38case JsonTokenType.None:
Microsoft.ML.SearchSpace.Tests (5)
ParameterTest.cs (2)
76parameter = Parameter.FromEnum(JsonTokenType.None); 77parameter.AsType<JsonTokenType>().Should().Be(JsonTokenType.None);
SearchSpaceTest.cs (3)
111param.BasicSS.JTokenType.Should().Be(JsonTokenType.None); 158parameter.JTokenType.Should().Be(JsonTokenType.None); 347[Choice(new object[] { JsonTokenType.None, JsonTokenType.EndObject, JsonTokenType.StartArray, JsonTokenType.Null }, defaultValue: JsonTokenType.Null)]
System.Text.Json (80)
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
63Debug.Assert(jsonTokenType > JsonTokenType.None && jsonTokenType <= JsonTokenType.Null);
System\Text\Json\Document\JsonDocument.Parse.cs (4)
353/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 393/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 449case JsonTokenType.None: 726JsonTokenType tokenType = JsonTokenType.None)
System\Text\Json\Document\JsonElement.cs (2)
38return _parent?.GetJsonTokenType(_idx) ?? JsonTokenType.None; 1656case JsonTokenType.None:
System\Text\Json\Document\JsonElement.Parse.cs (2)
22/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 87/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the
System\Text\Json\Nodes\JsonNode.Parse.cs (1)
25/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the
System\Text\Json\Reader\JsonReaderHelper.cs (1)
53case JsonTokenType.None:
System\Text\Json\Reader\Utf8JsonReader.cs (6)
284if (_isFinalBlock && TokenType is JsonTokenType.None && !_readerOptions.AllowMultipleValues) 844if (_tokenType == JsonTokenType.None) 1872if (_bitStack.CurrentDepth == 0 && _tokenType != JsonTokenType.None) 1991else if (_tokenType == JsonTokenType.None) 2569JsonTokenType.None => nameof(JsonTokenType.None),
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (3)
151if (_tokenType == JsonTokenType.None) 1713if (_bitStack.CurrentDepth == 0 && _tokenType != JsonTokenType.None) 1841else if (_tokenType == JsonTokenType.None)
System\Text\Json\Serialization\JsonConverterOfT.cs (2)
241Debug.Assert(state.Current.OriginalTokenType == JsonTokenType.None); 529case JsonTokenType.None:
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (6)
36/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 90/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 141/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 190/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 251/// is <see cref="JsonTokenType.PropertyName"/> or <see cref="JsonTokenType.None"/>, the 350case JsonTokenType.None:
System\Text\Json\Writer\Utf8JsonWriter.cs (5)
541Debug.Assert(_tokenType != JsonTokenType.None && _tokenType != JsonTokenType.StartArray); 551if (CurrentDepth == 0 && _tokenType != JsonTokenType.None) 578if (_tokenType is not JsonTokenType.PropertyName and not JsonTokenType.None || _commentAfterNoneOrPropertyName) 969Debug.Assert(_tokenType != JsonTokenType.None); 1006Debug.Assert(_options.SkipValidation || _tokenType != JsonTokenType.None);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (2)
307if (_tokenType != JsonTokenType.None) 357if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (2)
309if (_tokenType != JsonTokenType.None) 357if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (2)
308if (_tokenType != JsonTokenType.None) 356if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (2)
302if (_tokenType != JsonTokenType.None) 347if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (2)
306if (_tokenType != JsonTokenType.None) 351if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (2)
306if (_tokenType != JsonTokenType.None) 351if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (2)
310if (_tokenType != JsonTokenType.None) 359if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (2)
113if (_tokenType != JsonTokenType.None) 186if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (2)
453if (_tokenType != JsonTokenType.None) 498if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (2)
378if (_tokenType != JsonTokenType.None) 423if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (6)
211if (_tokenType != JsonTokenType.None) 400if (_tokenType != JsonTokenType.None) 1539if (_tokenType != JsonTokenType.None) 1588if (_tokenType != JsonTokenType.None) 1640if (_tokenType != JsonTokenType.None) 1691if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (2)
387if (_tokenType != JsonTokenType.None) 432if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (1)
123if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (4)
56if (_tokenType is JsonTokenType.PropertyName or JsonTokenType.None) 123if (_tokenType != JsonTokenType.None || _commentAfterNoneOrPropertyName) 171if (_tokenType is JsonTokenType.PropertyName or JsonTokenType.None) 229if (_tokenType != JsonTokenType.None || _commentAfterNoneOrPropertyName)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (1)
88if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (1)
89if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (1)
84if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (1)
88if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (1)
88if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (1)
90if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (1)
89if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (2)
21Debug.Assert(_tokenType != JsonTokenType.None && _tokenType != JsonTokenType.StartArray); 30if (CurrentDepth == 0 && _tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (1)
108if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (1)
97if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (2)
168if (_tokenType != JsonTokenType.None) 314if (_tokenType != JsonTokenType.None)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (1)
99if (_tokenType != JsonTokenType.None)