Table of Contents

Class InfinityResult<T>

Namespace
JJConsulting.Infinity.Domain.Results
Assembly
JJConsulting.Infinity.Domain.dll

Represents the result of an operation that returns a value, indicating success or failure.

public class InfinityResult<T> : InfinityResult

Type Parameters

T

The type of the value returned by the operation.

Inheritance

Inherited Members

Constructors

InfinityResult(params List<InfinityError>)

Initializes a new instance of the JJConsulting.Infinity.Domain.Results.InfinityResult`1 class with the specified errors.

public InfinityResult(params List<InfinityError> errors)

Parameters

errors List<InfinityError>

The list of errors associated with the operation.

Properties

Value

Gets the value returned by the operation, if successful.

public T? Value { get; }

Property Value

T?

Operators

implicit operator InfinityResult<T>(T)

Implicitly converts a value of type T to an JJConsulting.Infinity.Domain.Results.InfinityResult`1.

public static implicit operator InfinityResult<T>(T value)

Parameters

value T

The value to be converted.

Returns

InfinityResult<T>