Table of Contents

Class ResultWithExceptionEditorConfig<T>

Namespace
SunamoEditorConfig._public
Assembly
SunamoEditorConfig.dll

Represents a result that can contain either a successful result value or an exception message

public class ResultWithExceptionEditorConfig<T>

Type Parameters

T

The type of the result value

Inheritance
ResultWithExceptionEditorConfig<T>
Inherited Members
Extension Methods

Constructors

ResultWithExceptionEditorConfig(string?)

Initializes a new instance with an exception message

public ResultWithExceptionEditorConfig(string? exception)

Parameters

exception string

The exception message describing the error

ResultWithExceptionEditorConfig(T?)

Initializes a new instance with a successful result

public ResultWithExceptionEditorConfig(T? result)

Parameters

result T

The successful result value

Properties

Exception

Gets or sets the exception message (null if the operation succeeded)

public string? Exception { get; set; }

Property Value

string

Result

Gets or sets the successful result value (null if an exception occurred)

public T? Result { get; set; }

Property Value

T