Interface IResult<T>
Interface representing the result of an operation.
Namespace: Tableau.Migration
Assembly: Tableau.Migration.dll
Syntax
public interface IResult<T> : IResult where T : class
Type Parameters
Name | Description |
---|---|
T | The result's value type |
Properties
Success
Gets whether the operation was successful.
Declaration
bool Success { get; }
Property Value
Type | Description |
---|---|
bool |
Value
Gets the result of the operation when successful or null when the operation is not successful.
Declaration
T? Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Cast<U>()
Casts a result to another type.
Declaration
IResult<U> Cast<U>() where U : class
Returns
Type | Description |
---|---|
IResult<U> | The casted result. |
Type Parameters
Name | Description |
---|---|
U | The type to cast to. |
Exceptions
Type | Condition |
---|---|
InvalidCastException | If the value cannot be casted to the target type. |