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) 1762if (marker == JsonConstants.Slash) 1819if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1915Debug.Assert(first != JsonConstants.Slash); 1956if (first == JsonConstants.Slash) 2118while (marker == JsonConstants.Slash) 2153while (marker == JsonConstants.Slash) 2355if (marker == JsonConstants.Slash) 2365ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash); 2371ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash); 2485int foundIdx = localBuffer.Slice(idx).IndexOf(JsonConstants.Slash); 2532if (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) 1553if (marker == JsonConstants.Slash) 1619if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1715Debug.Assert(first != JsonConstants.Slash); 1765if (first == JsonConstants.Slash) 1929while (marker == JsonConstants.Slash) 1964while (marker == JsonConstants.Slash) 2252if (marker is not (JsonConstants.Slash or JsonConstants.Asterisk)) 2510if (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;