Class
OptionalJsonConverterFactory
class OptionalJsonConverterFactory
Namespace: System
Assembly: Raven.Core.dll
Source file: Optional.rvn
Inheritance: Object → JsonConverter → JsonConverterFactory → OptionalJsonConverterFactory
Creates JSON converters for constructed Optional types.
Constructors
1 item
OptionalJsonConverterFactory()
Creates JSON converters for constructed `Optional` types.
Properties
1 item
Type: Type?
Gets the type being converted by the current converter instance.
Inherited from JsonConverterFactory.Type
Methods
6 items
CanConvert(typeToConvert: Type) -> bool
Determines whether the specified type is an `Optional` type.
Overrides JsonConverter.CanConvert
CreateConverter(typeToConvert: Type, options: JsonSerializerOptions) -> JsonConverter?
Creates a converter for the specified constructed `Optional` 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: OptionalJsonConverterFactory?) -> Optional<OptionalJsonConverterFactory>
Converts a nullable reference to `Some`, or to `None` when it is `null`.
Extension from OptionalExtensions1<T>.op_Implicit