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