Skip to content

Commit 13975b4

Browse files
strobelteiriktsarpalis
authored andcommitted
Correct converter naming
1 parent 3408c93 commit 13975b4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/libraries/System.Text.Json/ref/System.Text.Json.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ public static partial class JsonMetadataServices
10261026
public static System.Text.Json.Serialization.JsonConverter<System.Text.Json.Nodes.JsonNode> JsonNodeConverter { get { throw null; } }
10271027
public static System.Text.Json.Serialization.JsonConverter<System.Text.Json.Nodes.JsonObject> JsonObjectConverter { get { throw null; } }
10281028
public static System.Text.Json.Serialization.JsonConverter<System.Text.Json.Nodes.JsonValue> JsonValueConverter { get { throw null; } }
1029+
public static System.Text.Json.Serialization.JsonConverter<System.Text.Json.JsonDocument> JsonDocumentConverter { get { throw null; } }
10291030
public static System.Text.Json.Serialization.JsonConverter<object> ObjectConverter { get { throw null; } }
10301031
[System.CLSCompliantAttribute(false)]
10311032
public static System.Text.Json.Serialization.JsonConverter<sbyte> SByteConverter { get { throw null; } }
@@ -1040,7 +1041,6 @@ public static partial class JsonMetadataServices
10401041
public static System.Text.Json.Serialization.JsonConverter<ulong> UInt64Converter { get { throw null; } }
10411042
public static System.Text.Json.Serialization.JsonConverter<System.Uri> UriConverter { get { throw null; } }
10421043
public static System.Text.Json.Serialization.JsonConverter<System.Version> VersionConverter { get { throw null; } }
1043-
public static System.Text.Json.Serialization.JsonConverter<System.Text.Json.JsonDocument> DocumentConverter { get { throw null; } }
10441044
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TElement[]> CreateArrayInfo<TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TElement[]> collectionInfo) { throw null; }
10451045
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateConcurrentQueueInfo<TCollection, TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Concurrent.ConcurrentQueue<TElement> { throw null; }
10461046
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateConcurrentStackInfo<TCollection, TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Concurrent.ConcurrentStack<TElement> { throw null; }

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private static Dictionary<Type, JsonConverter> GetDefaultSimpleConverters()
112112
Add(JsonMetadataServices.Int32Converter);
113113
Add(JsonMetadataServices.Int64Converter);
114114
Add(JsonMetadataServices.JsonElementConverter);
115-
Add(JsonMetadataServices.DocumentConverter);
115+
Add(JsonMetadataServices.JsonDocumentConverter);
116116
Add(JsonMetadataServices.ObjectConverter);
117117
Add(JsonMetadataServices.SByteConverter);
118118
Add(JsonMetadataServices.SingleConverter);

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonMetadataServices.Converters.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ public static partial class JsonMetadataServices
127127
public static JsonConverter<JsonValue> JsonValueConverter => s_jsonValueConverter ??= new JsonValueConverter();
128128
private static JsonConverter<JsonValue>? s_jsonValueConverter;
129129

130+
/// <summary>
131+
/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="JsonDocument"/> values.
132+
/// </summary>
133+
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
134+
public static JsonConverter<JsonDocument> JsonDocumentConverter => s_jsonDocumentConverter ??= new JsonDocumentConverter();
135+
private static JsonConverter<JsonDocument>? s_jsonDocumentConverter;
136+
130137
/// <summary>
131138
/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="object"/> values.
132139
/// </summary>
@@ -201,13 +208,6 @@ public static partial class JsonMetadataServices
201208
public static JsonConverter<Version> VersionConverter => s_versionConverter ??= new VersionConverter();
202209
private static JsonConverter<Version>? s_versionConverter;
203210

204-
/// <summary>
205-
/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="JsonDocument"/> values.
206-
/// </summary>
207-
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
208-
public static JsonConverter<JsonDocument> DocumentConverter => s_documentConverter ??= new JsonDocumentConverter();
209-
private static JsonConverter<JsonDocument>? s_documentConverter;
210-
211211
/// <summary>
212212
/// Creates a <see cref="JsonConverter{T}"/> instance that throws <see cref="NotSupportedException"/>.
213213
/// </summary>

0 commit comments

Comments
 (0)