Show / Hide Table of Contents

Interface IValueOrError<T>

Interface for objects that represent a value or an error.

Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public interface IValueOrError<out T>
Type Parameters
Name Description
T

Type of the value.

Properties

Exception

Gets the error represented by the object. If this object represents a value, an error is thrown.

Declaration
Exception Exception { get; }
Property Value
Type Description
System.Exception

Kind

Gets a value indicating whether this object represents a value or an error.

Declaration
ValueOrErrorKind Kind { get; }
Property Value
Type Description
ValueOrErrorKind

Value

Gets the value represented by the object. If this object represents an error, the original error is thrown.

Declaration
T Value { get; }
Property Value
Type Description
T
In This Article
Back to top Generated by DocFX