Skip to content

Commit

Permalink
Make JsonTypeInfo.ObjectType internal (#52850)
Browse files Browse the repository at this point in the history
  • Loading branch information
layomia committed May 17, 2021
1 parent c465b1c commit 0f1920d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/libraries/System.Text.Json/ref/System.Text.Json.cs
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,6 @@ public abstract partial class JsonPropertyInfo
public partial class JsonTypeInfo
{
internal JsonTypeInfo() { }
public static readonly System.Type ObjectType;
}
public abstract partial class JsonTypeInfo<T> : System.Text.Json.Serialization.Metadata.JsonTypeInfo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public partial class JsonTypeInfo
/// <summary>
/// Cached typeof(object). It is faster to cache this than to call typeof(object) multiple times.
/// </summary>
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
Expand Down

0 comments on commit 0f1920d

Please sign in to comment.