JsonConverter 类
定义
将对象或值转换为 JSON,或是从 JSON 转换为对象或值。Converts an object or value to or from JSON.
public ref class JsonConverter abstract
public abstract class JsonConverter
type JsonConverter = class
Public MustInherit Class JsonConverter
- 继承
-
JsonConverter
- 派生
注解
有关详细信息,请参阅如何编写用于 JSON 序列化的自定义转换器。For more information, see How to write custom converters for JSON serialization.
方法
CanConvert(Type) |
在派生类中重写时,确定转换器实例是否可以转换指定的对象类型。When overridden in a derived class, determines whether the converter instance can convert the specified object type. |
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |