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

ReactiveUI.Primitives.Result

public struct Result : IEquatable<Result>
Represents the outcome of an operation, indicating success or failure and providing error details when applicable.
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 current operation to fail, if any.

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 successfully without an exception.

public Result(Exception exception)

Initializes a new instance of the Result struct. Initializes a new instance of the Result class with the specified exception.

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()

Throws the associated exception if the result represents a failure.