<PackageReference Include="ReactiveUI.Primitives.Core" Version="8.0.0" />

ReactiveUI.Primitives.Result

public struct Result : IEquatable<Result>
Represents the outcome of an operation, indicating success or failure and carrying the failure exception.
public static Result Success { get; }

Gets a predefined result instance that indicates a successful operation.

public Exception Exception { get; }

Gets the exception that caused the operation to fail, or null when it succeeded.

public bool IsFailure { get; }

Gets a value indicating whether the operation has failed.

public bool IsSuccess { get; }

Gets a value indicating whether the operation completed without an exception.

public Result(Exception exception)

Initializes a new instance of the Result struct representing a failure.

public static Result Failure(Exception exception)

Creates a failed result that encapsulates the specified exception.

public static bool op_Equality(Result left, Result right)

public static bool op_Inequality(Result left, Result right)

public bool Equals(Result other)

public void TryThrow()

Rethrows the failure exception, preserving its original stack trace; a no-op on success.