12 references to Utf8GetString
System.Text.Json (12)
System\Text\Json\Nodes\JsonNode.To.cs (2)
30
return JsonHelpers.
Utf8GetString
(output.WrittenMemory.Span);
64
return JsonHelpers.
Utf8GetString
(output.WrittenMemory.Span);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
55
string stringPropertyName = JsonHelpers.
Utf8GetString
(unescapedPropertyName);
62
state.Current.JsonPropertyNameAsString = JsonHelpers.
Utf8GetString
(unescapedPropertyName);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (4)
167
if (PropertyCache!.TryGetValue(JsonHelpers.
Utf8GetString
(propertyName), out JsonPropertyInfo? info))
179
string propertyNameStr = JsonHelpers.
Utf8GetString
(propertyName);
199
string propertyNameStr = JsonHelpers.
Utf8GetString
(propertyName);
317
if (ParameterCache.TryGetValue(JsonHelpers.
Utf8GetString
(propertyName), out JsonParameterInfo? info))
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
823
string propertyName = JsonHelpers.
Utf8GetString
(unescapedPropertyName);
System\Text\Json\Serialization\ReadStack.cs (1)
364
propertyName = JsonHelpers.
Utf8GetString
(utf8PropertyName);
System\Text\Json\ThrowHelper.cs (1)
339
string message = GetResourceString(ref json, resource, nextByte, JsonHelpers.
Utf8GetString
(bytes));
System\Text\Json\ThrowHelper.Serialization.cs (1)
715
ThrowJsonException(SR.Format(SR.DuplicateMetadataProperty, JsonHelpers.
Utf8GetString
(utf8PropertyName)));