TryResultsT Class

Class that contains a value and an error message and if the operation was successful

Definition

Namespace: PCB_Investigator.Plugin.Classes
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public class TryResults<T>
Inheritance
Object    TryResultsT

Type Parameters

T

Constructors

TryResultsT Constructor for the Maybe class

Properties

ErrorMessage Error message if the operation was not successful
Success If the operation was successful
Value Value of the operation

Methods

CreateError Create an error message
Unpack Unpack the value of the Maybe class. If the operation was not successful, show an error message if wanted

See Also