8 references to Utf16StringSequence
System.Text.Json (8)
System\Text\Json\ThrowHelper.cs (1)
326case EnclosingContainerType.Utf16StringSequence: return "UTF-16";
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
154Debug.Assert(_enclosingContainer == EnclosingContainerType.Utf16StringSequence);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (2)
30/// <see cref="EnclosingContainerType.Utf8StringSequence"/>, <see cref="EnclosingContainerType.Utf16StringSequence"/>, <see cref="EnclosingContainerType.Base64StringSequence"/>: 79Debug.Assert(currentSegmentEncoding is EnclosingContainerType.Utf8StringSequence or EnclosingContainerType.Utf16StringSequence or EnclosingContainerType.Base64StringSequence);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (4)
33ValidateWritingSegment(EnclosingContainerType.Utf16StringSequence); 36if (_enclosingContainer != EnclosingContainerType.Utf16StringSequence) 39_enclosingContainer = EnclosingContainerType.Utf16StringSequence; 67Debug.Assert(_enclosingContainer == EnclosingContainerType.Utf16StringSequence);