ConversionResult Struct

Definition

A type representing the result of function input conversion operation.

public readonly struct ConversionResult
type ConversionResult = struct
Public Structure ConversionResult
Inheritance
ConversionResult

Properties

Error

Gets the error which caused the conversion to fail.

Status

Gets the status of the conversion.

Value

Gets the value produced from the conversion if it was successful.

Methods

Failed(Exception)

Creates a new ConversionResult instance to represent a failed input conversion.

Success(Object)

Creates a new ConversionResult instance to represent a successful input conversion.

Unhandled()

Creates a new ConversionResult instance to represent an unhandled input conversion.

Applies to