Edit

Share via


DefaultJsonTypeInfoResolver Class

Definition

Defines the default, reflection-based JSON contract resolver used by System.Text.Json.

public ref class DefaultJsonTypeInfoResolver : System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver
public class DefaultJsonTypeInfoResolver : System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
type DefaultJsonTypeInfoResolver = class
    interface IJsonTypeInfoResolver
Public Class DefaultJsonTypeInfoResolver
Implements IJsonTypeInfoResolver
Inheritance
DefaultJsonTypeInfoResolver
Implements

Remarks

The contract resolver used by Default.

Constructors

DefaultJsonTypeInfoResolver()

Creates a mutable DefaultJsonTypeInfoResolver instance.

Properties

Modifiers

Gets a list of user-defined callbacks that can be used to modify the initial contract.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeInfo(Type, JsonSerializerOptions)

Resolves a JSON contract for a given type and options configuration.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

WithAddedModifier(IJsonTypeInfoResolver, Action<JsonTypeInfo>)

Creates a resolver and applies modifications to the metadata generated by the source resolver.

Applies to