| Overloads | |
|---|---|
| Execute(Action) | Executes an operation and returns a Result, converting any exception to a failure. |
| Execute<T>(Func<T>) | Executes an operation that returns a value and returns a Result. |
Executes an operation and returns a Result, converting any exception to a failure.
public static Atypical.VirtualFileSystem.Core.Result Execute(System.Action operation);
operation System.Action
The operation to execute.
Result
A Result indicating success or containing an error message.
Executes an operation that returns a value and returns a Result.
public static Atypical.VirtualFileSystem.Core.Result<T> Execute<T>(System.Func<T> operation);
T
The return type.
operation System.Func<T>
The operation to execute.
Atypical.VirtualFileSystem.Core.Result<T>
A Result containing the value or an error message.