API Browser

Class

RavenParenthesizedUnionJsonConverterFactory

class RavenParenthesizedUnionJsonConverterFactory

Namespace: System
Assembly: Raven.Core.dll
Source file: UnionJsonConverter.rvn

Inheritance: Object → JsonConverter → JsonConverterFactory → RavenParenthesizedUnionJsonConverterFactory

Creates JSON converters for parenthesized ad-hoc unions.

Constructors

1 item
RavenParenthesizedUnionJsonConverterFactory() Creates JSON converters for parenthesized ad-hoc unions.

Properties

2 items
Type: Type? Gets the type being converted by the current converter instance. Inherited from JsonConverterFactory.Type
Static member: TypeDiscriminatorPropertyName: string Gets the JSON property used to preserve an ambiguous runtime type.

Methods

6 items
CanConvert(typeToConvert: Type) -> bool Determines whether a type has the runtime shape of a parenthesized union. Overrides JsonConverter.CanConvert
CreateConverter(typeToConvert: Type, options: JsonSerializerOptions) -> JsonConverter? Creates a parenthesized-union converter for the specified type. Overrides JsonConverterFactory.CreateConverter
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
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString

Operators

1 item
Static extension member: implicit conversion<T>(value: RavenParenthesizedUnionJsonConverterFactory?) -> Optional<RavenParenthesizedUnionJsonConverterFactory> Converts a nullable reference to `Some`, or to `None` when it is `null`. Extension from OptionalExtensions1<T>.op_Implicit