37 references to Slash
System.Text.Json (37)
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (2)
427case JsonConstants.Slash: 428destination[written++] = JsonConstants.Slash;
System\Text\Json\Reader\Utf8JsonReader.cs (15)
849if (first == JsonConstants.Slash) 1079Debug.Assert((_trailingCommaBeforeComment && marker != JsonConstants.Slash) || !_trailingCommaBeforeComment); 1117if (marker == JsonConstants.Slash) 1124if (marker == JsonConstants.Slash) 1763if (marker == JsonConstants.Slash) 1820if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1916Debug.Assert(first != JsonConstants.Slash); 1957if (first == JsonConstants.Slash) 2119while (marker == JsonConstants.Slash) 2154while (marker == JsonConstants.Slash) 2356if (marker == JsonConstants.Slash) 2366ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash); 2372ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash); 2486int foundIdx = localBuffer.Slice(idx).IndexOf(JsonConstants.Slash); 2533if (marker == JsonConstants.Slash)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (12)
156if (first == JsonConstants.Slash) 405Debug.Assert((_trailingCommaBeforeComment && marker != JsonConstants.Slash) || !_trailingCommaBeforeComment); 443if (marker == JsonConstants.Slash) 456if (marker == JsonConstants.Slash) 1568if (marker == JsonConstants.Slash) 1634if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1730Debug.Assert(first != JsonConstants.Slash); 1780if (first == JsonConstants.Slash) 1944while (marker == JsonConstants.Slash) 1979while (marker == JsonConstants.Slash) 2267if (marker is not (JsonConstants.Slash or JsonConstants.Asterisk)) 2525if (localBuffer[0] == JsonConstants.Slash)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (8)
93output[BytesPending++] = JsonConstants.Slash; 106output[BytesPending++] = JsonConstants.Slash; 134output[BytesPending++] = JsonConstants.Slash; 147output[BytesPending++] = JsonConstants.Slash; 206output[BytesPending++] = JsonConstants.Slash; 213output[BytesPending++] = JsonConstants.Slash; 241output[BytesPending++] = JsonConstants.Slash; 248output[BytesPending++] = JsonConstants.Slash;