ReplResult
Default immutable result implementation.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/ReplResult.cs
Signature
Section titled “Signature”public sealed record ReplResult : IReplResult, IEquatable<ReplResult>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”- IReplResult
IEquatable<ReplResult>
Constructors
Section titled “Constructors”ReplResult(string, string?, string, object?)
Section titled “ReplResult(string, string?, string, object?)”Default immutable result implementation.
public ReplResult(string Kind, string? Code, string Message, object? Details)Parameters
Section titled “Parameters”Kind(string): Result kind.Code(string): Optional result code.Message(string): Result message.Details(object): Optional details payload.
Properties
Section titled “Properties”Optional result code.
public string? Code { get; init; }Returns
Section titled “Returns”Details
Section titled “Details”Optional details payload.
public object? Details { get; init; }Returns
Section titled “Returns”Result kind.
public string Kind { get; init; }Returns
Section titled “Returns”Message
Section titled “Message”Result message.
public string Message { get; init; }