From 404cfdd735f4a9ce9e32a30bcbffc89423e34f28 Mon Sep 17 00:00:00 2001 From: Layomi Akinrinade Date: Mon, 17 May 2021 10:44:06 -0700 Subject: [PATCH] Make JsonTypeInfo.ObjectType internal --- src/libraries/System.Text.Json/ref/System.Text.Json.cs | 1 - .../Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Text.Json/ref/System.Text.Json.cs b/src/libraries/System.Text.Json/ref/System.Text.Json.cs index 494f3f70644c49..a709ae3fd6abc6 100644 --- a/src/libraries/System.Text.Json/ref/System.Text.Json.cs +++ b/src/libraries/System.Text.Json/ref/System.Text.Json.cs @@ -841,7 +841,6 @@ internal JsonPropertyInfo() { } public partial class JsonTypeInfo { internal JsonTypeInfo() { } - public static readonly System.Type ObjectType; } public abstract partial class JsonTypeInfo : System.Text.Json.Serialization.Metadata.JsonTypeInfo { diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs index d70d628b5d6701..39dffda9170557 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs @@ -14,7 +14,7 @@ public partial class JsonTypeInfo /// /// Cached typeof(object). It is faster to cache this than to call typeof(object) multiple times. /// - public static readonly Type ObjectType = typeof(object); + internal static readonly Type ObjectType = typeof(object); // The length of the property name embedded in the key (in bytes). // The key is a ulong (8 bytes) containing the first 7 bytes of the property name