JsonConverter<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.
Converts an object or value to or from JSON.
generic <typename T>
public ref class JsonConverter abstract : System::Text::Json::Serialization::JsonConverter
public abstract class JsonConverter<T> : System.Text.Json.Serialization.JsonConverter
type JsonConverter<'T> = class
inherit JsonConverter
Public MustInherit Class JsonConverter(Of T)
Inherits JsonConverter
Type Parameters
- T
The type of object or value handled by the converter.
- Inheritance
- Derived
Remarks
For more information, see How to write custom converters for JSON serialization.
Constructors
JsonConverter<T>() |
Initializes a new JsonConverter<T> instance. |
Properties
HandleNull |
Gets a value that indicates whether |
Type |
Gets the type being converted by the current converter instance. |
Type |
Gets the type being converted by the current converter instance. (Inherited from JsonConverter) |
Methods
CanConvert(Type) |
Determines whether the specified type can be converted. |
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) |
Read(Utf8JsonReader, Type, JsonSerializerOptions) |
Reads and converts the JSON to type |
ReadAsPropertyName(Utf8JsonReader, Type, JsonSerializerOptions) |
Reads a dictionary key from a JSON property name. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Write(Utf8JsonWriter, T, JsonSerializerOptions) |
Writes a specified value as JSON. |
WriteAsPropertyName(Utf8JsonWriter, T, JsonSerializerOptions) |
Writes a dictionary key as a JSON property name. |
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za