DiscriminatedUnionConverter Class |
Namespace: Newtonsoft.Json.Converters
public class DiscriminatedUnionConverter : JsonConverter
The DiscriminatedUnionConverter type exposes the following members.
| Name | Description | |
|---|---|---|
| DiscriminatedUnionConverter | Initializes a new instance of the DiscriminatedUnionConverter class |
| Name | Description | |
|---|---|---|
| CanRead |
Gets a value indicating whether this JsonConverter can read JSON.
(Inherited from JsonConverter.) | |
| CanWrite |
Gets a value indicating whether this JsonConverter can write JSON.
(Inherited from JsonConverter.) |
| Name | Description | |
|---|---|---|
| CanConvert |
Determines whether this instance can convert the specified object type.
(Overrides JsonConverterCanConvert(Type).) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.) | |
| ReadJson |
Reads the JSON representation of the object.
(Overrides JsonConverterReadJson(JsonReader, Type, Object, JsonSerializer).) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| WriteJson |
Writes the JSON representation of the object.
(Overrides JsonConverterWriteJson(JsonWriter, Object, JsonSerializer).) |