Result<T, TE> Class
Definition
- Namespace
- Tyne
- Assembly
- Tyne.Core.dll
A result encapsulates either Ok( or T)Error(.TE)
[JsonConverter(typeof(ResultJsonConverterFactory))]
public sealed class Result<T, TE> : IEquatable<Result<T, TE>>
Type Parameters
TThe type of value this result encapsulates.
TEThe type of error this result encapsulates.
- Inheritance
-
Result<T, TE>
- Implements
-
IEquatable<Result<T, TE>>
Methods
| Equals(object?) | Determines whether the specified |
| Equals(Result<T, TE>?) | Determines whether the specified |
| GetHashCode() | Returns a hash code for this instance. |
| ToString() | Returns a string that represents this instance. |
| TryUnwrap(out T?, out TE?) | Tries to unwrap this result. |
Operators
| operator ==(in Result<T, TE>?, in Result<T, TE>?) | Determines whether the |
| implicit operator Option<T>(in Result<T, TE>?) | Converts |
| implicit operator Result<Unit, TE>(in Result<T, TE>) | Implicitly converts |
| implicit operator Result<T, TE>(in T) | Implicitly converts |
| implicit operator Result<T, TE>(in TE) | Implicitly converts |
| operator !=(in Result<T, TE>?, in Result<T, TE>?) | Determines whether the |