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