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