ReferenceHandler<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines how the JsonSerializer deals with references on serialization and deserialization.
generic <typename T>
where T : ReferenceResolvergcnew()public ref class ReferenceHandler sealed : System::Text::Json::Serialization::ReferenceHandler
public sealed class ReferenceHandler<T> : System.Text.Json.Serialization.ReferenceHandler where T : ReferenceResolver, new()
type ReferenceHandler<'T (requires 'T :> ReferenceResolver and 'T : (new : unit -> 'T))> = class
inherit ReferenceHandler
Public NotInheritable Class ReferenceHandler(Of T)
Inherits ReferenceHandler
Type Parameters
- T
The type of the ReferenceResolver to create on each serialization or deserialization call.
- Inheritance
Constructors
ReferenceHandler<T>() |
Initializes a new instance of the ReferenceHandler<T> generic class that can create a ReferenceResolver instance of the specified type. |
Methods
CreateResolver() |
Creates a new ReferenceResolver of type |
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) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |