Result

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public sealed class Result<T>

Summary

Lightweight generic result type used by integration-facing interfaces such as IPlaceableInventoryAdapter and IPlaceablePersistenceAdapter.

Metadata

Namespace: GridPlacement.Core.Interfaces

Source File: cs/Core/Interfaces/Result.cs

Assembly: GridPlacement.Core

Type: class

Properties

Success

1
public bool Success { get; }

True when the operation completed successfully.


Value

1
public T? Value { get; }

Value produced by a successful operation. May be null when the operation failed.


ErrorMessage

1
public string? ErrorMessage { get; }

Optional error message for failed operations.


Methods

CreateSuccess

1
public static Result<T> CreateSuccess(T value)

Creates a successful result wrapping the provided value.


Failure

1
public static Result<T> Failure(string errorMessage)

Creates a failed result with an error message.