Class
RavenParenthesizedUnionJsonConverter<TUnion>
class RavenParenthesizedUnionJsonConverter<TUnion>
Namespace: System
Assembly: Raven.Core.dll
Source file: UnionJsonConverter.rvn
Inheritance: Object → JsonConverter → JsonConverter<TUnion> → RavenParenthesizedUnionJsonConverter<TUnion>
Converts a parenthesized ad-hoc union to and from JSON.
Constructors
1 item
RavenParenthesizedUnionJsonConverter()
Converts a parenthesized ad-hoc union to and from JSON.
Properties
5 items
_hasValueProperty: PropertyInfo
No summary available.
_tagField: FieldInfo
No summary available.
_unionType: Type
No summary available.
HandleNull: bool
Gets a value that indicates whether should be passed to the converter on serialization, and whether System.Text.Json.JsonTokenType.Null should be passed on deserialization.
Inherited from JsonConverter<TUnion>.HandleNull
Type: Type
Gets the type being converted by the current converter instance.
Inherited from JsonConverter<TUnion>.Type
Methods
9 items
CanConvert(typeToConvert: Type) -> bool
Determines whether the specified type can be converted.
Inherited from JsonConverter<TUnion>.CanConvert
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
Read(reader: ref Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions) -> TUnion?
Reads a parenthesized union from JSON.
Overrides JsonConverter<TUnion>.Read
ReadAsPropertyName(reader: ref Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions) -> TUnion
Reads a dictionary key from a JSON property name.
Inherited from JsonConverter<TUnion>.ReadAsPropertyName
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString
Write(writer: Utf8JsonWriter, value: TUnion, options: JsonSerializerOptions) -> ()
Writes a parenthesized union to JSON.
Overrides JsonConverter<TUnion>.Write
WriteAsPropertyName(writer: Utf8JsonWriter, value: TUnion, options: JsonSerializerOptions) -> ()
Writes a dictionary key as a JSON property name.
Inherited from JsonConverter<TUnion>.WriteAsPropertyName
Operators
1 item
Static extension member:
implicit conversion<T>(value: RavenParenthesizedUnionJsonConverter<TUnion>?) -> Optional<RavenParenthesizedUnionJsonConverter<TUnion>>
Converts a nullable reference to `Some`, or to `None` when it is `null`.
Extension from OptionalExtensions1<T>.op_Implicit